DemARK build on MacOS, Ubuntu and Windows #2040
This file contains hidden or 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: 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/ |