Skip to content

Commit

Permalink
Update setup-python action in tests to use new caching feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 23, 2022
1 parent 0eb05ca commit c981454
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ jobs:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v02
cache: "pip"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
if: steps.setup-python.outputs.cache-hit != 'true'
run: pip install -e .[all,dev,doc,test]
- name: Lint
run: bash scripts/lint.sh
Expand Down

0 comments on commit c981454

Please sign in to comment.