Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
ci: cache pip python
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jan 8, 2025
1 parent 4d26e3f commit 0b39bec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
requirements.txt
uv.lock
- name: Install deps
run: uv sync --all-extras
- name: Install deps including dev
run: uv sync

- name: Pre-commit check
env:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/schedule-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: 'requirements.txt'

- name: Install deps
run: uv sync --all-extras
- name: Install production deps
run: uv sync --no-dev

- name: Restore config
if: ${{ env.config != '' }}
Expand Down

0 comments on commit 0b39bec

Please sign in to comment.