diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 3fb4f2000..94f4118ec 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -46,8 +46,8 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide python -m flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - check-history-rst-syntax: - name: Check HISTORY RST syntax + check-rst-syntax: + name: Check RST syntax runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -63,7 +63,7 @@ jobs: - name: Lint with doc8 run: | # Skip line-too-long errors (D001) - python -m doc8 --ignore D001 HISTORY.rst + python -m doc8 --ignore D001 HISTORY.rst README_PYTHON.rst run-model-tests: name: Run model tests @@ -193,6 +193,12 @@ jobs: # natcap.invest from source and that it imports. python -c "from natcap.invest import *" + - name: Set up environment + run: pip install twine + + - name: Check long description with twine + run: twine check $(find dist -name "natcap[._-]invest*") + - uses: actions/upload-artifact@v3 with: name: Source distribution