Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Feb 29, 2024
1 parent 1e58692 commit 556766a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@ jobs:

- name: Install rye
uses: eifinger/setup-rye@v1
id: setup-rye
with:
enable-cache: true
cache-prefix: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}

- name: set rye python
run: |
rye pin cpython@${{ matrix.python-version }}
- name: Load cached venv
id: cached-venv-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}

- name: Install dependencies
if: steps.cached-venv-dependencies.outputs.cache-hit != 'true'
if: steps.setup-rye.outputs.cache-hit == 'true'
run: |
rye sync --all-features
Expand Down

0 comments on commit 556766a

Please sign in to comment.