Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: cache pixi packages on push to main #76

Merged
merged 2 commits into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,30 @@ concurrency:
cancel-in-progress: true

jobs:
cache-pixi:
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

pytest-audio:
needs: cache-pixi
if: always()
uses: Glatzel/template/.github/workflows/pytest.yml@main
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 @@ -38,11 +53,12 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

pytest-arithmetic:
needs: cache-pixi
if: always()
uses: Glatzel/template/.github/workflows/pytest.yml@main
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