Skip to content

Commit

Permalink
💚 More experiments with caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sokolov committed Mar 13, 2020
1 parent 71a9d1c commit 5911078
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ jobs:
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry>=1.0.0
poetry config virtualenvs.create false
poetry config cache-dir ~/.cache
- uses: actions/cache@v1
pip install poetry >=1.0.0
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v1
id: cache
with:
path: ~/.cache
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
path: .venv
key: venv-${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
poetry install
- name: Lint with black
Expand Down

0 comments on commit 5911078

Please sign in to comment.