Skip to content

Commit fd224d7

Browse files
committed
Check pixi consistency
1 parent fa6fa72 commit fd224d7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
- 'setup.cfg'
4747
- 'requirements.txt'
4848
- '.pre-commit-config.yaml'
49+
- 'pixi.toml'
50+
- 'pixi.lock'
4951
5052
style:
5153
name: Check code style
@@ -63,6 +65,17 @@ jobs:
6365
with:
6466
python-version: ${{ matrix.python-version }}
6567
- uses: pre-commit/[email protected]
68+
# Check that pixi stuff is consistent
69+
- uses: prefix-dev/[email protected]
70+
with:
71+
run-install: false
72+
- name: Check that the pixi.lock is consistent with pixi.toml
73+
run: |
74+
pixi run --no-install --locked echo "All good!"
75+
- name: Check that pixi.toml is consistent with environment.yml and pyproject.toml
76+
run: |
77+
pip install tomlkit
78+
python scripts/generate-pixi-toml.py --verify-only
6679
6780
test:
6881
name: "${{ matrix.os }} test py${{ matrix.python-version }} numpy${{ matrix.numpy-version }} : fast-compile ${{ matrix.fast-compile }} : float32 ${{ matrix.float32 }} : ${{ matrix.part }}"

0 commit comments

Comments
 (0)