Skip to content

Commit 7d96fb8

Browse files
rgommersdnicolodi
authored andcommitted
CI: test pixi with conda and system compilers
Share locked base dependencies, including GEOS, between environments with and without conda C/C++ compilers. Run them as pixi and pixi-system-compilers jobs.
1 parent cb6fc10 commit 7d96fb8

3 files changed

Lines changed: 161 additions & 60 deletions

File tree

‎.github/workflows/pixi.lock‎

Lines changed: 141 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/pixi.toml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,21 @@ ninja = "*"
1919
pkg-config = "*"
2020
cmake = "*"
2121
patchelf = "*"
22-
c-compiler = "*"
23-
cxx-compiler = "*"
22+
geos = "*"
2423
pip = "*"
2524
python-build = "*"
2625
cython = "*"
2726
pytest = "*"
2827
pytest-mock = "*"
2928
wheel = "*"
3029

30+
[feature.compilers.dependencies]
31+
c-compiler = "*"
32+
cxx-compiler = "*"
33+
34+
[environments]
35+
default = { features = ["compilers"], solve-group = "test" }
36+
system-compilers = { features = [], solve-group = "test" }
37+
3138
[tasks]
3239
test = { cmd = "pytest", cwd = "../.." }

‎.github/workflows/tests.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,16 @@ jobs:
336336
run: mypy -p mesonpy
337337

338338
pixi:
339+
name: ${{ matrix.name }}
339340
runs-on: ubuntu-24.04-arm
341+
strategy:
342+
fail-fast: false
343+
matrix:
344+
include:
345+
- name: pixi
346+
environment: default
347+
- name: pixi-system-compilers
348+
environment: system-compilers
340349
steps:
341350
- name: Checkout
342351
uses: actions/checkout@v7
@@ -347,11 +356,12 @@ jobs:
347356
with:
348357
pixi-version: v0.77.1
349358
manifest-path: .github/workflows/pixi.toml
359+
environments: ${{ matrix.environment }}
350360
cache: false
351361

352362
- name: Run tests
353363
working-directory: .github/workflows
354-
run: pixi run test
364+
run: pixi run --environment ${{ matrix.environment }} test
355365

356366
uv-sync:
357367
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)