зеркало из https://github.com/microsoft/torchgeo.git
Remove sphinx CI test (#292)
* Remove sphinx CI test * Move mypy back to tests section * Fix bad rebase
This commit is contained in:
Родитель
dfdaf86616
Коммит
51430647b2
|
@ -1,43 +0,0 @@
|
|||
# TODO: it should be possible to test documentation builds directly on Read the Docs:
|
||||
# https://docs.readthedocs.io/en/stable/pull-requests.html
|
||||
name: docs
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
pydocstyle:
|
||||
name: pydocstyle
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install pip dependencies
|
||||
run: pip install .[style]
|
||||
- name: Run pydocstyle checks
|
||||
run: pydocstyle
|
||||
sphinx:
|
||||
name: sphinx
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install apt dependencies
|
||||
run: sudo apt-get install pandoc
|
||||
- name: Install pip dependencies
|
||||
run: |
|
||||
pip install .
|
||||
pip install -r docs/requirements.txt
|
||||
- name: Run sphinx checks
|
||||
run: cd docs && make html
|
|
@ -49,3 +49,17 @@ jobs:
|
|||
run: pip install .[style]
|
||||
- name: Run isort checks
|
||||
run: isort . --check --diff
|
||||
pydocstyle:
|
||||
name: pydocstyle
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install pip dependencies
|
||||
run: pip install .[style]
|
||||
- name: Run pydocstyle checks
|
||||
run: pydocstyle
|
||||
|
|
|
@ -17,7 +17,6 @@ External links:
|
|||
[![spack](https://img.shields.io/spack/v/py-torchgeo)](https://spack.readthedocs.io/en/latest/package_list.html#py-torchgeo)
|
||||
|
||||
Tests:
|
||||
[![docs](https://github.com/microsoft/torchgeo/actions/workflows/docs.yaml/badge.svg)](https://github.com/microsoft/torchgeo/actions/workflows/docs.yaml)
|
||||
[![style](https://github.com/microsoft/torchgeo/actions/workflows/style.yaml/badge.svg)](https://github.com/microsoft/torchgeo/actions/workflows/style.yaml)
|
||||
[![tests](https://github.com/microsoft/torchgeo/actions/workflows/tests.yaml/badge.svg)](https://github.com/microsoft/torchgeo/actions/workflows/tests.yaml)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче