Skip to content

Commit

Permalink
fix test & docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkEilander committed Dec 20, 2023
1 parent 6694398 commit 598439f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ jobs:
run: |
python make_env.py full -p 3.11 -n hydromt-sfincs -o environment-doc.yml
mamba env create -f environment-doc.yml
mamba run -n hydromt pip install -e .
mamba run -n hydromt-sfincs pip install -e .
# if we're not publishing we don't have to write them, so we might as well
# save ourself a bunch of IO time
- name: Build dummy docs
if: ${{ github.event_name == 'pull_request' }}
run: |
mamba run -n hydromt sphinx-build ./docs ./docs/_build -b dummy -W
mamba run -n hydromt-sfincs sphinx-build ./docs ./docs/_build -b dummy -W
- name: Build html docs
if: ${{ github.event_name != 'pull_request' }}
run: |
mamba run -n hydromt sphinx-build -M html ./docs ./docs/_build -W
echo "DOC_VERSION=$(mamba run -n hydromt python -c 'from hydromt_sfincs import __version__ as v; print("dev" if "dev" in v else "v"+v)')" >> $GITHUB_ENV
mamba run -n hydromt-sfincs sphinx-build -M html ./docs ./docs/_build -W
echo "DOC_VERSION=$(mamba run -n hydromt-sfincs python -c 'from hydromt_sfincs import __version__ as v; print("dev" if "dev" in v else "v"+v)')" >> $GITHUB_ENV
- name: Upload to GitHub Pages
if: ${{ github.event_name != 'pull_request'}}
Expand Down
1 change: 1 addition & 0 deletions tests/test_1model_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def test_model_build(tmpdir, case):
check_less_precise=True, # allow for rounding errors in geoms
check_like=True, # order may be different
check_geom_type=True, # geometry types should be the same
normalize=True, # normalize geometry
)
except AssertionError: # re-raise error with geom name
invalid_geoms.append(name)
Expand Down

0 comments on commit 598439f

Please sign in to comment.