Skip to content

Commit

Permalink
ci: use cache that provided by uv
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Oct 29, 2024
1 parent 9880ad9 commit 1e8b0e8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Load cached venv
id: cached-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/uv.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
if: steps.cached-dependencies.outputs.cache-hit != 'true'
run: uv sync --all-extras --dev
Expand Down

0 comments on commit 1e8b0e8

Please sign in to comment.