|
1 | | -name: Test Galah with Setup-Miniconda From Marketplace |
| 1 | +name: Test Galah |
2 | 2 | on: [push, pull_request] |
3 | 3 |
|
4 | 4 | jobs: |
|
25 | 25 | - name: Run test |
26 | 26 | run: | |
27 | 27 | 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