File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ # Test against conda distribution of StructuralGT
2+ name : Test
3+
4+ concurrency :
5+ group : ${{ github.workflow }}-${{ github.ref }}
6+ cancel-in-progress : true
7+
8+ on :
9+ # Trigger on pull requests.
10+ pull_request :
11+
12+ # Trigger on pushes to the mainline branches. This prevents building commits twice when the pull
13+ # request source branch is in the same repository.
14+ push :
15+ branches :
16+ - " master"
17+
18+ # Trigger on request.
19+ workflow_dispatch :
20+
21+ jobs :
22+ execute_notebooks :
23+ name : Execute notebooks, Python ${{ matrix.python-version }}
24+ strategy :
25+ fail-fast : false
26+ matrix :
27+ python-version : ["3.12", "3.13"]
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v4.2.2
31+ with :
32+ path : StructuralGT-examples
33+ # Important! All steps that use the conda environment should define "shell: bash -l {0}".
34+ - uses : conda-incubator/setup-miniconda@v3
35+ with :
36+ python-version : ${{ matrix.python-version }}
37+ mamba-version : " *"
38+ channel-priority : strict
39+ activate-environment : StructuralGT-examples
40+ environment-file : StructuralGT-examples/environment.yml
41+ - name : Display StructuralGT version
42+ shell : bash -l {0}
43+ run : |-
44+ python3 -c "import StructuralGT; print(StructuralGT.__version__)"
45+ # clone the tutorials and run them
46+ - name : List notebooks
47+ run : ls **/*.ipynb
48+ working-directory : StructuralGT-examples
49+ - name : Run notebook execution tests
50+ shell : bash -l {0}
51+ run : |-
52+ python3 -m pytest -v --nbval --nbval-lax --ignore=archive/
53+ working-directory : StructuralGT-examples
Original file line number Diff line number Diff line change 1+ channels :
2+ - conda-forge
3+ dependencies :
4+ - matplotlib
5+ - structuralgt
6+ - pytest
7+ - nbval
You can’t perform that action at this time.
0 commit comments