Skip to content

Commit

Permalink
Add twine check and add README_PYTHON.rst to doc8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyanndavis committed Sep 10, 2024
1 parent c056170 commit 7a00f65
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a00f65

Please sign in to comment.