Update to IDAES 2.2 #544
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: Notebooks checks | |
on: | |
push: | |
branches: | |
- main | |
- '*_rel' | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
defaults: | |
run: | |
# important to make sure that all commands on Windows are run using Bash | |
# -l: login shell, needed when using Conda | |
shell: bash -l {0} | |
env: | |
DISPATCHES_TESTING_MODE: "true" | |
PYTEST_ADDOPTS: >- | |
--color=yes | |
-p no:python | |
-k 'not multiperiod_design_pricetaker_wTEALandSynhist.ipynb' | |
jobs: | |
nbcheck-static: | |
name: Check .ipynb files in repo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install | |
with: | |
variant: dev | |
python-version: '3.9' | |
- name: Run nbcheck (static) | |
run: | |
pytest --nbcheck=static | |
nbcheck-execution: | |
needs: [nbcheck-static] | |
name: Execute notebooks (${{ matrix.os }}/py${{ matrix.python-version }}) | |
runs-on: ${{ matrix.os-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9'] | |
os: | |
- linux | |
- win64 | |
include: | |
- os: linux | |
os-version: ubuntu-20.04 | |
- os: win64 | |
os-version: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install | |
with: | |
variant: dev | |
python-version: ${{ matrix.python-version }} | |
- name: Run nbcheck (execution) | |
run: | |
pytest --nbcheck=exec --cell-timeout=750 --durations=0 |