Skip to content

Commit dbab9ce

Browse files
committed
Pin runner images to avoid CI rot
ref https://github.com/MagicStack/asyncpg/actions/runs/22286259051/job/64465189709?pr=1308 failed with: ====================================================================== ERROR: test_tls_version (test_connect.TestSSLConnection) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/runner/work/asyncpg/asyncpg/asyncpg/_testbase/__init__.py", line 92, in wrapper self.loop.run_until_complete(coro) File "/Applications/Xcode_16.4.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/runner/work/asyncpg/asyncpg/tests/test_connect.py", line 2024, in test_tls_version await self.connect( File "/Users/runner/work/asyncpg/asyncpg/asyncpg/connection.py", line 2443, in connect return await connect_utils._connect( File "/Users/runner/work/asyncpg/asyncpg/asyncpg/connect_utils.py", line 1209, in _connect addrs, params, config = _parse_connect_arguments(**kwargs) File "/Users/runner/work/asyncpg/asyncpg/asyncpg/connect_utils.py", line 893, in _parse_connect_arguments addrs, params = _parse_connect_dsn_and_args( File "/Users/runner/work/asyncpg/asyncpg/asyncpg/connect_utils.py", line 798, in _parse_connect_dsn_and_args ssl.minimum_version = _parse_tls_version( File "/Applications/Xcode_16.4.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ssl.py", line 586, in minimum_version super(SSLContext, SSLContext).minimum_version.__set__(self, value) ValueError: Unsupported protocol version 0x304
1 parent 3bca715 commit dbab9ce

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
validate-release-request:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Validate release PR
1717
uses: edgedb/action-release/validate-pr@master
@@ -44,7 +44,7 @@ jobs:
4444

4545
build-sdist:
4646
needs: validate-release-request
47-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-24.04
4848

4949
env:
5050
PIP_DISABLE_PIP_VERSION_CHECK: 1
@@ -73,7 +73,7 @@ jobs:
7373

7474
build-wheels-matrix:
7575
needs: validate-release-request
76-
runs-on: ubuntu-latest
76+
runs-on: ubuntu-24.04
7777
outputs:
7878
include: ${{ steps.set-matrix.outputs.include }}
7979
steps:
@@ -141,7 +141,7 @@ jobs:
141141
path: wheelhouse/*.whl
142142

143143
merge-artifacts:
144-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-24.04
145145
needs: [build-sdist, build-wheels]
146146
steps:
147147
- name: Merge Artifacts
@@ -152,7 +152,7 @@ jobs:
152152

153153
publish-docs:
154154
needs: [build-sdist, build-wheels]
155-
runs-on: ubuntu-latest
155+
runs-on: ubuntu-24.04
156156

157157
env:
158158
PIP_DISABLE_PIP_VERSION_CHECK: 1
@@ -201,7 +201,7 @@ jobs:
201201

202202
publish:
203203
needs: [build-sdist, build-wheels, publish-docs]
204-
runs-on: ubuntu-latest
204+
runs-on: ubuntu-24.04
205205

206206
environment:
207207
name: pypi

.github/workflows/tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ jobs:
2222
strategy:
2323
matrix:
2424
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
25-
os: [ubuntu-latest, macos-latest, windows-latest]
25+
# using macos-15-intel because github does not provide 3.9 cpython for macos-15 (arm64)
26+
# https://github.com/actions/python-versions/blob/e49da096/versions-manifest.json
27+
os: [ubuntu-24.04, macos-15-intel, windows-2025]
2628
loop: [asyncio, uvloop]
2729
exclude:
2830
# uvloop does not support windows
2931
- loop: uvloop
30-
os: windows-latest
32+
os: windows-2025
3133

3234
runs-on: ${{ matrix.os }}
3335

@@ -55,7 +57,7 @@ jobs:
5557
__version__(?:\s*:\s*typing\.Final)?\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
5658
5759
- name: Setup PostgreSQL
58-
if: "!steps.release.outputs.is_release && matrix.os == 'macos-latest'"
60+
if: "!steps.release.outputs.is_release && matrix.os == 'macos-15-intel'"
5961
run: |
6062
POSTGRES_FORMULA="postgresql@18"
6163
brew install "$POSTGRES_FORMULA"
@@ -90,7 +92,7 @@ jobs:
9092
matrix:
9193
postgres-version: ["9.5", "9.6", "10", "11", "12", "13", "14", "15", "16", "17", "18"]
9294

93-
runs-on: ubuntu-latest
95+
runs-on: ubuntu-24.04
9496

9597
permissions: {}
9698

@@ -146,7 +148,7 @@ jobs:
146148
regression-tests:
147149
name: "Regression Tests"
148150
needs: [test-platforms, test-postgres]
149-
runs-on: ubuntu-latest
151+
runs-on: ubuntu-24.04
150152
permissions: {}
151153

152154
steps:

0 commit comments

Comments
 (0)