Skip to content

Commit

Permalink
fix cache in setup step
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Nov 30, 2023
1 parent 53bf326 commit bad63e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache: "pip-${{ matrix.python-version }}-${{ runner.os }}"
if: ${{ env.run-tests == 'true' }}

outputs:
python-version: ${{ matrix.python-version }}
runner: ${{ matrix.runner }}
Expand All @@ -64,7 +65,7 @@ jobs:
outputs:
tests: ${{ steps.list_tests.outputs.tests }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
name: Check out source-code repository

- name: List tests
Expand Down

0 comments on commit bad63e9

Please sign in to comment.