Skip to content

Commit

Permalink
try with cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Jul 14, 2023
1 parent f49145b commit 9ba461a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'

- name: cache virtualenv
id: cacheVenv
uses: actions/cache@v3
with:
path: ./.venv/
key: ${{ runner.os }}-${{ steps.setupPython.outputs.python-version }}-venv-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ steps.setupPython.outputs.python-version }}-venv-
- name: Install requirements
if: steps.setupPython.outputs.cache-hit != 'true'
if: steps.cacheVenv.outputs.cache-hit != 'true'
run: pip install -e . -r requirements.txt

- name: codespell
Expand Down

0 comments on commit 9ba461a

Please sign in to comment.