Browse Source

👷 Update `setup-python` action in tests to use new caching feature (#5680)

pull/5462/merge
Michael Adkins 3 years ago
committed by GitHub
parent
commit
22837ee202
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .github/workflows/test.yml

10
.github/workflows/test.yml

@ -19,15 +19,13 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
id: setup-python
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3 cache: "pip"
id: cache cache-dependency-path: pyproject.toml
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v02
- name: Install Dependencies - 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] run: pip install -e .[all,dev,doc,test]
- name: Lint - name: Lint
run: bash scripts/lint.sh run: bash scripts/lint.sh

Loading…
Cancel
Save