Skip to content

Commit

Permalink
💚 Add dependencies caching to GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sokolov committed Mar 13, 2020
1 parent 31be171 commit 831daf4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
- 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
name: Cache
id: cache
with:
path: ~/.cache
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
poetry install
- name: Lint with black
run: |
Expand Down

0 comments on commit 831daf4

Please sign in to comment.