Skip to content

DemARK build on MacOS, Ubuntu and Windows #2040

DemARK build on MacOS, Ubuntu and Windows

DemARK build on MacOS, Ubuntu and Windows #2040

Workflow file for this run

name: DemARK build on MacOS, Ubuntu and Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 0 0 * * *
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup mamba environment to run notebooks
uses: mamba-org/setup-micromamba@v2
with:
environment-file: binder/environment.yml
create-args: >-
pytest
pytest-xdist
python=${{ matrix.python-version }}
cache-environment: false
# Note: Chinese-Growth.ipynb and Harmenberg-Aggregation.ipynb are excluded
# because they require extended computation time that exceeds CI limits
- name: Test with nbval
shell: bash -l {0}
run: |
python -m pytest -n auto --dist=loadfile --nbval-lax --nbval-cell-timeout=12000 --ignore=notebooks/Chinese-Growth.ipynb --ignore=notebooks/Harmenberg-Aggregation.ipynb notebooks/