Skip to content

Commit

Permalink
ci: change poetry installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitosKey committed Dec 21, 2024
1 parent 11835d1 commit f332881
Showing 1 changed file with 4 additions and 52 deletions.
56 changes: 4 additions & 52 deletions .github/workflows/python-poetry-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

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

- name: Install latest version of Poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org | python -
- name: Add Poetry to $PATH
run: |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Get Poetry version
run: poetry --version
- name: install poetry
run: pipx install poetry

- name: Check pyproject.toml validity
run: poetry check --no-interaction

- name: Cache dependencies
id: cache-deps
uses: actions/[email protected]
with:
path: ${{github.workspace}}/.venv
key: ${{ matrix.os }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ matrix.os }}-

- name: Install deps
if: steps.cache-deps.cache-hit != 'true'
run: |
Expand All @@ -73,36 +49,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache Poetry
id: cache-poetry
uses: actions/[email protected]
with:
path: ~/.poetry
key: ${{ matrix.os }}-poetry

- name: Install latest version of Poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org | python -
- name: Add Poetry to $PATH
run: |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Get Poetry version
run: poetry --version
- name: Install poetry
run: pipx install poetry

- name: Check pyproject.toml validity
run: poetry check --no-interaction

- name: Cache dependencies
id: cache-deps
uses: actions/[email protected]
with:
path: ${{github.workspace}}/.venv
key: ${{ matrix.os }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ matrix.os }}-

- name: Install deps
if: steps.cache-deps.cache-hit != 'true'
run: |
Expand Down

0 comments on commit f332881

Please sign in to comment.