From 51430647b28a8667aea4ea0fd2f01240051f9a60 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 17 Dec 2021 18:55:20 -0600 Subject: [PATCH] Remove sphinx CI test (#292) * Remove sphinx CI test * Move mypy back to tests section * Fix bad rebase --- .github/workflows/docs.yaml | 43 ------------------------------------ .github/workflows/style.yaml | 14 ++++++++++++ README.md | 1 - 3 files changed, 14 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml deleted file mode 100644 index 204b164c7..000000000 --- a/.github/workflows/docs.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index b76fd81d2..b3f5d41d3 100644 --- a/.github/workflows/style.yaml +++ b/.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 diff --git a/README.md b/README.md index 3b39bdd24..375cbcb31 100644 --- a/README.md +++ b/README.md @@ -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)