Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run conda tests for all notebooks #159

Merged
merged 14 commits into from
Oct 6, 2023
81 changes: 79 additions & 2 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,96 @@ jobs:

steps:
- name: Initialisation
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: latest

- name: discretisedfield notebooks
uses: actions/checkout@v4
with:
repository: ubermag/discretisedfield
ref: latest
path: docs/discretisedfield
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: mag2exp notebooks
uses: actions/checkout@v4
with:
repository: ubermag/mag2exp
ref: latest
path: docs/mag2exp
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: micromagneticdata notebooks
uses: actions/checkout@v4
with:
repository: ubermag/micromagneticdata
ref: latest
path: docs/micromagneticdata
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: micromagneticmodel notebooks
uses: actions/checkout@v4
with:
repository: ubermag/micromagneticmodel
ref: latest
path: docs/micromagneticmodel
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: micromagnetictests notebooks
uses: actions/checkout@v4
with:
repository: ubermag/micromagnetictests
ref: latest
path: docs/micromagnetictests
sparse-checkout: docs
sparse-checkout-cone-mode: false

# mumax3c - there are currently no notebooks

- name: oommfc notebooks
uses: actions/checkout@v4
with:
repository: ubermag/oommfc
ref: latest
path: docs/oommfc
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: ubermagtable notebooks
uses: actions/checkout@v4
with:
repository: ubermag/ubermagtable
ref: latest
path: docs/ubermagtable
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: ubermagutil notebooks
uses: actions/checkout@v4
with:
repository: ubermag/ubermagutil
ref: latest
path: docs/ubermagutil
sparse-checkout: docs
sparse-checkout-cone-mode: false

- name: Set up conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: conda-environment
environment-file: binder/environment.yml
miniforge-version: latest
miniforga-variant: Mambaforge
lang-m marked this conversation as resolved.
Show resolved Hide resolved
use-mamba: true

- name: Install testing packages
run: conda install -c conda-forge -y pytest nbval invoke
run: mamba install -c conda-forge -y pytest nbval invoke

- name: Test all
run: invoke test.all
Loading