conda #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: conda | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # run every Monday | |
workflow_dispatch: | |
env: | |
PYTEST_ADDOPTS: "--color=yes" | |
jobs: | |
conda: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Initialisation | |
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 | |
use-mamba: true | |
- name: Install testing packages | |
run: mamba install -c conda-forge -y pytest nbval invoke | |
- name: Test all | |
run: invoke test.ipynb |