diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c43a9c8..6537901 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -56,6 +57,7 @@ jobs: ${{ runner.os }}-pip- - name: Cache .venv + if: ${{ github.ref == 'refs/heads/main' }} uses: actions/cache@v4 with: path: .venv @@ -64,6 +66,7 @@ jobs: ${{ runner.os }}-venv- - name: Cache .tox + if: ${{ github.ref == 'refs/heads/main' }} uses: actions/cache@v4 with: path: .tox