Debian Codegraph @

.github/workflows/testing_notebooks.yml

raw symbols SCIP
1 name: notebooks testing
2
3 on: [push, pull_request]
4
5 jobs:
6 test-notebooks:
7
8 runs-on: ubuntu-latest
9 if: github.event.pull_request.draft == false
10 strategy:
11 matrix:
12 python-version: ['3.12']
13
14 steps:
15 - uses: actions/checkout@v6
16 - name: Set up Python ${{ matrix.python-version }}
17 uses: actions/setup-python@v6
18 with:
19 python-version: ${{ matrix.python-version }}
20 - uses: astral-sh/setup-uv@v7
21
22 - name: Install dependencies for Notebooks
23 run: |
24 uv venv
25 uv pip install -e .[test,visa,netw,xlsx,plot,docs,testspice] --compile
26
27 # test code *and* notebooks (tutorials and examples)
28 - name: Test the code, tutorials and examples
29 if: ${{ always() }}
30 run: |
31 . .venv/bin/activate
32 python -m pytest -n=auto --junitxml=test-results/junit-${{ matrix.python-version }}.xml --junit-prefix=${{ matrix.python-version }} --nbval-lax --nbval-current-env --dist loadscope