Skip to content

Commit

Permalink
fix(CI): poetry installation
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesBelveze committed Jul 15, 2023
1 parent 6124a63 commit 358a969
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,28 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.3.1

- uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --with dev --all-extras --no-interaction --no-root
- name: Install project
run: |
poetry install --with dev --all-extras
poetry install --no-interaction
- name: Check linting
run: |
Expand Down

0 comments on commit 358a969

Please sign in to comment.