Skip to content

Commit 586d658

Browse files
alingseclaude
andcommitted
Fix CI: restore uv venv step and add cache
- Add back 'uv venv' step that was accidentally removed - Add GitHub Actions cache for .venv directory - Cache key includes Python version and dependency hashes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff14913 commit 586d658

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
run: |
2121
curl -LsSf https://astral.sh/uv/install.sh | sh
2222
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Set up UV cache
24+
uses: actions/cache@v4
25+
with:
26+
path: .venv
27+
key: uv-${{ runner.os }}-lint-${{ hashFiles('pyproject.toml', 'requirements.txt') }}
28+
restore-keys: |
29+
uv-${{ runner.os }}-lint-
30+
- name: Create virtual environment
31+
run: uv venv || true
2332
- name: Install dependencies
2433
run: uv pip install -e ".[dev]"
2534
- name: Run ruff
@@ -42,6 +51,15 @@ jobs:
4251
run: |
4352
curl -LsSf https://astral.sh/uv/install.sh | sh
4453
echo "$HOME/.local/bin" >> $GITHUB_PATH
54+
- name: Set up UV cache
55+
uses: actions/cache@v4
56+
with:
57+
path: .venv
58+
key: uv-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'requirements.txt') }}
59+
restore-keys: |
60+
uv-${{ runner.os }}-py${{ matrix.python-version }}-
61+
- name: Create virtual environment
62+
run: uv venv || true
4563
- name: Install dependencies
4664
run: uv pip install -e ".[dev]"
4765
- name: Run tests
@@ -64,6 +82,15 @@ jobs:
6482
run: |
6583
curl -LsSf https://astral.sh/uv/install.sh | sh
6684
echo "$HOME/.local/bin" >> $GITHUB_PATH
85+
- name: Set up UV cache
86+
uses: actions/cache@v4
87+
with:
88+
path: .venv
89+
key: uv-${{ runner.os }}-build-${{ hashFiles('pyproject.toml') }}
90+
restore-keys: |
91+
uv-${{ runner.os }}-build-
92+
- name: Create virtual environment
93+
run: uv venv || true
6794
- name: Build package
6895
run: |
6996
uv pip install build twine

0 commit comments

Comments
 (0)