1- name : Test notebooks
1+ name : Test
22
33on :
44 push :
@@ -16,31 +16,33 @@ concurrency:
1616 cancel-in-progress : true
1717
1818jobs :
19- tests :
20- name : ${{ matrix.os }} ${{ matrix.name }}
19+ tox_test :
20+ name : tox on ${{ matrix.os }} with ${{ matrix.name }}
2121 runs-on : ${{ matrix.os }}
2222 strategy :
2323 fail-fast : false
2424 matrix :
25- # Run all supported OS for one Python version, then add a few extra scenarios
25+ # Run all supported OS for one Python version.
26+ # The test additional Python versions on Linux only.
2627 os : [ubuntu-latest, macos-latest, windows-latest]
2728 python-version : ['3.12']
2829 toxenv : [py312-test]
29- name : ['with Python 3.12',]
30+ name : ['Python 3.12',]
3031
3132 include :
32- - python-version : ' 3.10 '
33- toxenv : py310 -test-oldestdeps
34- name : with Python 3.10 and oldest versioned dependencies
33+ - python-version : ' 3.11 '
34+ toxenv : py311 -test-oldestdeps
35+ name : Python 3.11 and oldest versioned dependencies
3536 os : ubuntu-latest
3637
3738 - python-version : ' 3.13'
3839 toxenv : py313-test-devdeps
39- name : with Python 3.13 and developer versioned dependencies
40+ name : Python 3.13 and developer versioned dependencies
4041 os : ubuntu-latest
4142
4243 steps :
4344 - uses : actions/checkout@v4
45+
4446 - name : Set up Python ${{ matrix.python-version }}
4547 uses : actions/setup-python@v5
4648 with :
@@ -52,20 +54,49 @@ jobs:
5254 - name : Test with tox
5355 run : tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
5456
55-
56- gha_buildhtml :
57- name : Buildhtml testing
57+ tox_build :
58+ name : Build static site with tox
5859 runs-on : ubuntu-latest
5960 steps :
6061 - uses : actions/checkout@v4
6162
6263 - name : Setup Python
6364 uses : actions/setup-python@v5
6465 with :
65- python-version : ' 3.11 '
66+ python-version : ' 3.12 '
6667
6768 - name : Install dependencies
6869 run : python -m pip install --upgrade tox
6970
70- - name : Execute notebooks as testing
71- run : tox -e py311-buildhtml
71+ - name : Build static site
72+ run : tox -e py312-buildhtml
73+
74+ pixi_test :
75+ name : pixi on ${{ matrix.os }} with ${{ matrix.environment}}
76+ runs-on : ${{ matrix.os }}
77+ strategy :
78+ fail-fast : false
79+ matrix :
80+ # Run all supported OS for one Python version, then add a few extra scenarios
81+ os : [ubuntu-latest, macos-latest, windows-latest]
82+ environment : [py311, py312]
83+ steps :
84+ - uses : actions/checkout@v4
85+
86+ - name : Setup pixi
87+ uses : prefix-dev/setup-pixi@v0.8.1
88+
89+ - name : Test all files
90+ run : pixi run test
91+
92+ pixi_build :
93+ name : Build static site with pixi
94+ runs-on : ubuntu-latest
95+ steps :
96+ - uses : actions/checkout@v4
97+
98+ - name : Setup pixi
99+ uses : prefix-dev/setup-pixi@v0.8.1
100+
101+ - name : Build static site
102+ run : pixi run build
0 commit comments