Skip to content

Commit

Permalink
poetry dependency caching on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Jul 31, 2023
1 parent 27dd4b0 commit 9e36cf1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ defaults:
run:
shell: bash

# Cancel existing run if a new one is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
strategy:
Expand Down Expand Up @@ -44,7 +39,13 @@ jobs:
python -c "import sys; print(sys.version)"
docker --version
docker-compose --version
- uses: Gr1N/setup-poetry@v8
- uses: Gr1N/setup-poetry@v8 # optionally set specific poetry version
# with:
# poetry-version: "1.5.1"
- uses: actions/cache@v2 # cache dependencies to reduce workflow installation time
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies with Poetry
run: |
poetry --version
Expand Down

0 comments on commit 9e36cf1

Please sign in to comment.