Skip to content

Commit 4660203

Browse files
committed
add pixi tests
1 parent e6dfdbb commit 4660203

File tree

1 file changed

+62
-1
lines changed

1 file changed

+62
-1
lines changed

.github/workflows/test-galah.yml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Galah with Setup-Miniconda From Marketplace
1+
name: Test Galah
22
on: [push, pull_request]
33

44
jobs:
@@ -25,3 +25,64 @@ jobs:
2525
- name: Run test
2626
run: |
2727
cargo test
28+
29+
pixi_test_dependencies_locked:
30+
name: Pixi test_dependencies_locked ${{ matrix.os }}
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: ["ubuntu-latest"]
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Install Pixi
39+
run: |
40+
curl -fsSL https://pixi.sh/install.sh | bash
41+
echo "$HOME/.pixi/bin" >> $GITHUB_PATH
42+
43+
- name: Create dev environment
44+
run: |
45+
pixi install -e dev
46+
pixi run -e dev pixi info
47+
48+
- name: Show environment info
49+
run: |
50+
pixi run -e dev pixi list
51+
52+
- name: Run tests with Pixi
53+
run: |
54+
pixi run -e dev galah -h
55+
pixi run -e dev cargo test
56+
57+
# Run after removing lock file so dependences are unlocked
58+
pixi_test_dependencies_optimistic:
59+
name: Pixi test_dependencies_optimistic ${{ matrix.os }}
60+
runs-on: ${{ matrix.os }}
61+
strategy:
62+
matrix:
63+
os: ["ubuntu-latest"]
64+
steps:
65+
- uses: actions/checkout@v4
66+
67+
- name: Install Pixi
68+
run: |
69+
curl -fsSL https://pixi.sh/install.sh | bash
70+
echo "$HOME/.pixi/bin" >> $GITHUB_PATH
71+
72+
- name: Remove lock file
73+
run: |
74+
rm -fv pixi.lock
75+
76+
- name: Create dev environment
77+
run: |
78+
pixi install -e dev
79+
pixi run -e dev pixi info
80+
81+
- name: Show environment info
82+
run: |
83+
pixi run -e dev pixi list
84+
85+
- name: Run tests with Pixi
86+
run: |
87+
pixi run -e dev galah -h
88+
pixi run -e dev cargo test

0 commit comments

Comments
 (0)