Skip to content

Commit

Permalink
ci: Ensure poetry version uses correct python version
Browse files Browse the repository at this point in the history
`pipx install poetry` does not necessarily use the configured python
version specified in `actions/setup-python`. This separate GH action
helps ensure we are using the correct version consistently.
  • Loading branch information
keelerm84 committed Apr 4, 2024
1 parent 2f4492e commit 3335e9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: pipx install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439

- uses: ./.github/actions/build
- uses: ./.github/actions/build-docs
Expand Down Expand Up @@ -113,10 +113,11 @@ jobs:
Start-Sleep -s 5
./redis-cli ping
- name: Install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439

- name: Install requirements
run: |
pipx install poetry
poetry install --all-extras
run: poetry install --all-extras

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python-version: 3.8

- name: Install poetry
run: pipx install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439

- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
name: 'Get PyPI token'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install poetry
if: ${{ steps.release.outputs.releases_created }}
run: pipx install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439

- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
if: ${{ steps.release.outputs.releases_created }}
Expand Down

0 comments on commit 3335e9a

Please sign in to comment.