* 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 коммит произвёл GitHub
Родитель dfdaf86616
Коммит 51430647b2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
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

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

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