Skip to content

Commit

Permalink
Merge branch 'bugfix/1622-autotest-failing-on-main' of github.com:pha…
Browse files Browse the repository at this point in the history
…rgogh/invest into bugfix/1622-autotest-failing-on-main
  • Loading branch information
phargogh committed Sep 12, 2024
2 parents 1f499a0 + d2cdbfb commit 78e7425
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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@v4
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 @@ -170,7 +170,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
requirements-files: requirements.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }}
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }} twine

- name: Build source distribution
run: |
Expand All @@ -193,6 +193,9 @@ jobs:
# natcap.invest from source and that it imports.
python -c "from natcap.invest import *"
- name: Check long description with twine
run: twine check $(find dist -name "natcap[._-]invest*")

- uses: actions/upload-artifact@v4
with:
name: Source distribution ${{ matrix.os }} ${{ matrix.python-version }}
Expand Down

0 comments on commit 78e7425

Please sign in to comment.