Skip to content

Commit 5a5f0cb

Browse files
committed
github/workflows: Use Python 3.11 for unix settrace jobs.
GitHub Actions has updated ubuntu-latest to 24.04, which now defaults CPython to 3.12, which has a known regression with settrace. Fix that by explicitly using CPython 3.11. Signed-off-by: Damien George <[email protected]>
1 parent 99ac819 commit 5a5f0cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ports_unix.yml

+10
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ jobs:
173173
runs-on: ubuntu-latest
174174
steps:
175175
- uses: actions/checkout@v4
176+
- uses: actions/setup-python@v5
177+
# Python 3.12 is the default for ubuntu-24.04, but that has compatibility issues with settrace tests.
178+
# Can remove this step when ubuntu-latest uses a more recent Python 3.x as the default.
179+
with:
180+
python-version: '3.11'
176181
- name: Build
177182
run: source tools/ci.sh && ci_unix_settrace_build
178183
- name: Run main test suite
@@ -185,6 +190,11 @@ jobs:
185190
runs-on: ubuntu-latest
186191
steps:
187192
- uses: actions/checkout@v4
193+
- uses: actions/setup-python@v5
194+
# Python 3.12 is the default for ubuntu-24.04, but that has compatibility issues with settrace tests.
195+
# Can remove this step when ubuntu-latest uses a more recent Python 3.x as the default.
196+
with:
197+
python-version: '3.11'
188198
- name: Build
189199
run: source tools/ci.sh && ci_unix_settrace_stackless_build
190200
- name: Run main test suite

0 commit comments

Comments
 (0)