Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
virtualenv can't be cached across Python versions, the `python` symlink gets broken
  • Loading branch information
oprypin committed Dec 20, 2020
1 parent 9005e8e commit d6cb9b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ jobs:
- name: Download source
uses: actions/checkout@v2
- name: Install Python
id: python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
- name: Cache packages
uses: actions/cache@v2
with:
path: .venv
key: venv-${{matrix.os}}-py${{matrix.python}}-${{hashFiles('pyproject.toml')}}
restore-keys: venv-${{matrix.os}}-py${{matrix.python}}-
key: venv-${{matrix.os}}-py${{steps.python.outputs.python-version}}-${{hashFiles('pyproject.toml')}}
restore-keys: venv-${{matrix.os}}-py${{steps.python.outputs.python-version}}-
- name: Create virtualenv
run: |
python -m venv .venv
Expand Down

0 comments on commit d6cb9b8

Please sign in to comment.