Skip to content

Commit c057748

Browse files
committed
chore: Fix GH workflow builds
Poetry v2 dropped support for python 3.8. For now, we are going to pin poetry to v1.8.5 when running 3.8, and latest otherwise.
1 parent bb2b189 commit c057748

File tree

4 files changed

+43
-11
lines changed

4 files changed

+43
-11
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,32 @@ name: Run CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
paths-ignore:
7-
- '**.md' # Do not need to run CI for markdown changes.
7+
- "**.md" # Do not need to run CI for markdown changes.
88
pull_request:
9-
branches: [ main ]
9+
branches: [main]
1010
paths-ignore:
11-
- '**.md'
11+
- "**.md"
1212

1313
jobs:
1414
linux:
1515
runs-on: ubuntu-latest
1616

1717
strategy:
18+
fail-fast: false
1819
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
include:
21+
- python-version: "3.8"
22+
poetry-version: "1.8.5"
23+
- python-version: "3.9"
24+
poetry-version: "latest"
25+
- python-version: "3.10"
26+
poetry-version: "latest"
27+
- python-version: "3.11"
28+
poetry-version: "latest"
29+
- python-version: "3.12"
30+
poetry-version: "latest"
2031

2132
steps:
2233
- uses: actions/checkout@v4
@@ -27,6 +38,8 @@ jobs:
2738

2839
- name: Install poetry
2940
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
41+
with:
42+
poetry-version: ${{ matrix.poetry-version }}
3043

3144
- uses: ./.github/actions/build
3245
- uses: ./.github/actions/build-docs
@@ -54,8 +67,19 @@ jobs:
5467
shell: powershell
5568

5669
strategy:
70+
fail-fast: false
5771
matrix:
58-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
72+
include:
73+
- python-version: "3.8"
74+
poetry-version: "1.8.5"
75+
- python-version: "3.9"
76+
poetry-version: "latest"
77+
- python-version: "3.10"
78+
poetry-version: "latest"
79+
- python-version: "3.11"
80+
poetry-version: "latest"
81+
- python-version: "3.12"
82+
poetry-version: "latest"
5983

6084
steps:
6185
- uses: actions/checkout@v4
@@ -66,6 +90,8 @@ jobs:
6690

6791
- name: Install poetry
6892
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
93+
with:
94+
poetry-version: ${{ matrix.poetry-version }}
6995

7096
- name: Install requirements
7197
run: poetry install

.github/workflows/manual-publish-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
- name: Install poetry
1919
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
20+
with:
21+
poetry-version: 1.8.5
2022

2123
- uses: ./.github/actions/build-docs
2224

.github/workflows/manual-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
inputs:
55
dry_run:
6-
description: 'Is this a dry run. If so no package will be published.'
6+
description: "Is this a dry run. If so no package will be published."
77
type: boolean
88
required: true
99

@@ -23,12 +23,14 @@ jobs:
2323

2424
- name: Install poetry
2525
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
26+
with:
27+
poetry-version: 1.8.5
2628

2729
- uses: launchdarkly/gh-actions/actions/[email protected]
28-
name: 'Get PyPI token'
30+
name: "Get PyPI token"
2931
with:
3032
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
31-
ssm_parameter_pairs: '/production/common/releasing/pypi/token = PYPI_AUTH_TOKEN'
33+
ssm_parameter_pairs: "/production/common/releasing/pypi/token = PYPI_AUTH_TOKEN"
3234

3335
- uses: ./.github/actions/build
3436

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ jobs:
2929
- name: Install poetry
3030
if: ${{ steps.release.outputs.releases_created == 'true' }}
3131
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
32+
with:
33+
poetry-version: 1.8.5
3234

3335
- uses: launchdarkly/gh-actions/actions/[email protected]
34-
name: 'Get PyPI token'
36+
name: "Get PyPI token"
3537
if: ${{ steps.release.outputs.releases_created == 'true' }}
3638
with:
3739
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
38-
ssm_parameter_pairs: '/production/common/releasing/pypi/token = PYPI_AUTH_TOKEN'
40+
ssm_parameter_pairs: "/production/common/releasing/pypi/token = PYPI_AUTH_TOKEN"
3941

4042
- uses: ./.github/actions/build
4143
if: ${{ steps.release.outputs.releases_created == 'true' }}

0 commit comments

Comments
 (0)