Skip to content

Commit

Permalink
Use new micromamba Action
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Aug 13, 2024
1 parent e7ea93e commit 3fb043e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
strategy:
matrix:
monet: [cf, dev]
fail-fast: false # just until cf versions are working
fail-fast: false # always both

steps:
- uses: actions/checkout@v4

- name: Set up Python (micromamba)
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: docs/environment-docs.yml
cache-env: true
extra-specs: |
cache-environment: true
create-args: >-
pytest
- if: ${{ matrix.monet == 'dev' }}
Expand All @@ -53,8 +53,7 @@ jobs:
cd docs/examples
for f in *.ipynb; do
if [ "$f" == 'idealized.ipynb' ]; then
jupytext --to py $f -o t.py
python t.py || exit 1
jupytext --to py $f -o t.py && python t.py || exit 1
fi
done
cd -
Expand Down Expand Up @@ -99,10 +98,10 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python (micromamba)
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: docs/environment-docs.yml
cache-env: true
cache-environment: true

- name: linkcheck
run: sphinx-build -b linkcheck docs docs/_build/linkcheck
Expand Down

0 comments on commit 3fb043e

Please sign in to comment.