Skip to content

Commit

Permalink
update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 18, 2024
1 parent 170f642 commit ffe6989
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Build Docs

# We don't want pushes (or PRs) to gh-pages to kick anything off
# We also build for PR's since this also tests whether all notebooks run properly
on:
push:
branches: [main]
Expand All @@ -18,21 +18,24 @@ jobs:
defaults:
run:
shell: bash -l {0}

steps:
- name: Checkout source
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup environment
uses: conda-incubator/setup-miniconda@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
channels: conda-forge
channel-priority: strict
environment-file: envs/hydromt-delft3dfm.yml
activate-environment: hydromt-delft3dfm

- name: Install hydromt-delft3dfm
run: flit install
python-version: ${{ matrix.python-version }}

- name: Install hydromt_delft3dfm and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[docs]
hydromt --models
- name: list env contents
run: |
pip list
- name: Build docs
run: |
Expand Down

0 comments on commit ffe6989

Please sign in to comment.