Skip to content

Commit 0985329

Browse files
committed
Test over a matrix of pixi environments.
1 parent 96da664 commit 0985329

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,14 @@ jobs:
7272
run: tox -e py311-buildhtml
7373

7474
pixi_test:
75-
name: ${{ matrix.os }} ${{ matrix.name }}
75+
name: ${{ matrix.os }} with ${{ matrix.environment}}
7676
runs-on: ${{ matrix.os }}
7777
strategy:
7878
fail-fast: false
7979
matrix:
8080
# Run all supported OS for one Python version, then add a few extra scenarios
8181
os: [ubuntu-latest, macos-latest, windows-latest]
82-
python-version: ['3.12']
83-
toxenv: [py312-test]
84-
name: ['with Python 3.12',]
85-
include:
86-
- python-version: '3.10'
87-
toxenv: py310-test-oldestdeps
88-
name: with Python 3.10 and oldest versioned dependencies
89-
os: ubuntu-latest
90-
91-
- python-version: '3.13'
92-
toxenv: py313-test-devdeps
93-
name: with Python 3.13 and developer versioned dependencies
94-
os: ubuntu-latest
95-
82+
environment: [py311, py312]
9683
steps:
9784
- uses: actions/checkout@v4
9885

pixi.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@ jupytext = ">=1.16"
4444
sphinx-book-theme = ">=1.1"
4545
sphinx-copybutton = ">=0.5"
4646

47+
[feature.py312.dependencies]
48+
python = "3.12.*"
49+
50+
[feature.py313.dependencies]
51+
python = "3.13.*"
52+
4753
[feature.jupyterlite.dependencies]
4854
jupyterlab = "~=4.2.4"
4955
jupyterlite-core = "==0.4.0"
5056
jupyterlite-pyodide-kernel = "==0.4.1"
5157
notebook = "~=7.2.1"
5258

5359
[environments]
60+
py312 = ["py312"]
61+
py313 = ["py313"]
5462
jupyterlite = ["jupyterlite"]

0 commit comments

Comments
 (0)