Skip to content

Commit

Permalink
Merge pull request #72 from psadi/feature/ci
Browse files Browse the repository at this point in the history
ci: cache only main branch
  • Loading branch information
psadi authored Nov 5, 2024
2 parents c5bb343 + a444d6d commit c103be7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
fetch-depth: 0

- name: Cache Pip Dependencies
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/cache@v4
with:
path: ~/.cache/pip
Expand All @@ -56,6 +57,7 @@ jobs:
${{ runner.os }}-pip-
- name: Cache .venv
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/cache@v4
with:
path: .venv
Expand All @@ -64,6 +66,7 @@ jobs:
${{ runner.os }}-venv-
- name: Cache .tox
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/cache@v4
with:
path: .tox
Expand Down

0 comments on commit c103be7

Please sign in to comment.