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

(chore): add rust-cache to CI and use the standard uv action #32

Merged
merged 6 commits into from
Nov 14, 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
19 changes: 17 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,34 @@ env:
jobs:
build_and_test:
name: zarrs-python
strategy:
fail-fast: false
matrix:
rust_toolchain: ["stable"] # "nightly"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Rust in GH runner images can lag behind stable releases + act does not include Rust
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_toolchain }}
LDeakin marked this conversation as resolved.
Show resolved Hide resolved

- name: Install rust-cache
uses: Swatinem/rust-cache@v2

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install UV
uses: hynek/setup-cached-uv@v2
uses: astral-sh/setup-uv@v3
with:
cache-dependency-path: pyproject.toml
version: "0.5.0"
enable-cache: true
LDeakin marked this conversation as resolved.
Show resolved Hide resolved
cache-dependency-glob: "pyproject.toml"
LDeakin marked this conversation as resolved.
Show resolved Hide resolved

- name: Install python deps + Build
run: |
Expand Down