Skip to content

Commit

Permalink
ci: cache pixi packages on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Glatzel committed Nov 2, 2024
1 parent 7fda332 commit 632be3b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ concurrency:
cancel-in-progress: true

jobs:
cache:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
runs-on: windows-latest
strategy:
matrix:
pixi_env: [audio, arithmetic]
steps:
- uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
environments: ${{matrix.pixi_env}}
cache: true

ruff-lint:
uses: Glatzel/template/.github/workflows/ruff.yml@main

Expand All @@ -29,7 +43,6 @@ jobs:
with:
name: test
machine: windows-latest
cache_write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
pixi_python_env: audio
test_path: ./src/audio
update_submodule: true
Expand All @@ -42,7 +55,6 @@ jobs:
with:
name: test
machine: windows-latest
cache_write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
pixi_python_env: arithmetic-cpu
test_path: ./src/arithmetic
update_submodule: true
Expand Down

0 comments on commit 632be3b

Please sign in to comment.