Skip to content

Commit

Permalink
fix: always install poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
hatamiarash7 committed Feb 25, 2024
1 parent 14aff93 commit 0e4ff59
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ jobs:
python-version: "3.10"

- name: Configure cache
id: cache-pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
restore-keys: ${{ runner.os }}-pip

- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: python -m pip install black flake8 isort

- name: Lint code
Expand Down Expand Up @@ -67,16 +69,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache Poetry
id: cache-poetry
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
restore-keys: ${{ runner.os }}-pip

- name: Install Poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
Expand Down

0 comments on commit 0e4ff59

Please sign in to comment.