Skip to content

Commit

Permalink
CI: Install poetry via pipx
Browse files Browse the repository at this point in the history
This fixes a bug whereby the runner's system Python was used instead of the version we want.

Also add caching for poetry packages.
  • Loading branch information
alexdewar committed Jan 7, 2025
1 parent 9b3753b commit 0c09d9a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci-poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.2
cache: poetry

- name: Install dependencies
run: pip install -r dev-requirements.txt
Expand Down

0 comments on commit 0c09d9a

Please sign in to comment.