* Remove sphinx CI test

* Move mypy back to tests section

* Fix bad rebase
This commit is contained in:
Adam J. Stewart 2021-12-17 18:55:20 -06:00
Родитель 01ae2db287
Коммит 13847d67fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: C66C0675661156FC
3 изменённых файлов: 14 добавлений и 44 удалений

43
.github/workflows/docs.yaml поставляемый
Просмотреть файл

@ -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

14
.github/workflows/style.yaml поставляемый
Просмотреть файл

@ -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

Просмотреть файл

@ -14,7 +14,6 @@ External links:
[![codecov](https://codecov.io/gh/microsoft/torchgeo/branch/main/graph/badge.svg?token=oa3Z3PMVOg)](https://codecov.io/gh/microsoft/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)