Skip to content

Commit 5a6b217

Browse files
authored
Update Cirrus CI configs (#291)
2 parents c55827b + db0698e commit 5a6b217

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

.cirrus.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ env:
7373
# ---- CI Pipeline ----
7474

7575
build_task:
76-
name: build and check (Linux - 3.11)
76+
name: build and check (Linux - 3.12)
7777
alias: build
78-
container: {image: "python:3.11-bullseye"}
78+
container: {image: "python:3.12-trixie"}
7979
clone_script: *clone
8080
<<: *task-template
8181
install_script: pip install tox tox-uv
@@ -91,17 +91,16 @@ linux_task:
9191
- name: test (Linux - 3.8)
9292
container: {image: "python:3.8-bookworm"}
9393
- name: test (Linux - 3.10)
94-
container: {image: "python:3.10-bookworm"}
94+
container: {image: "python:3.10-trixie"}
9595
skip: $BRANCH !=~ "^(main|master)$"
9696
- name: test (Linux - 3.12)
97-
container: {image: "python:3.12-bookworm"}
97+
container: {image: "python:3.12-trixie"}
9898
skip: $BRANCH !=~ "^(main|master)$"
99-
- name: test (Linux - 3.13)
100-
container: {image: "python:3.13-bookworm"}
101-
- name: test (Linux - 3.13)
102-
container: {image: "python:3.13-trixie"}
10399
- name: test (Linux - 3.14)
104-
container: {image: "python:3.14-bookworm"}
100+
container: {image: "python:3.14-trixie"}
101+
- name: test (Linux - 3.15)
102+
container: {image: "python:3.15-rc-trixie"}
103+
allow_failures: true # RC
105104
install_script:
106105
- python -m pip install --upgrade pip tox tox-uv pipx
107106
<<: *test-template
@@ -139,7 +138,7 @@ freebsd_task:
139138
depends_on: [build, base-test]
140139

141140
windows_task:
142-
name: test (Windows - 3.12.5)
141+
name: test (Windows - 3.12.10)
143142
windows_container:
144143
image: "cirrusci/windowsservercore:2019"
145144
os_version: 2019
@@ -149,25 +148,28 @@ windows_task:
149148
install_script:
150149
# Activate long file paths to avoid some errors
151150
- ps: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
152-
- choco install -y --no-progress python3 --version=3.12.5 --params "/NoLockdown"
151+
- choco install -y --no-progress python3 --version=3.12.10 --params "/NoLockdown"
153152
- choco install -y --no-progress curl
154-
- pip install --upgrade certifi
153+
- python -m pip install --upgrade certifi
155154
- python -m pip install -U pip tox tox-uv pipx
155+
configure_certs_script: |
156+
CERT_PATH="$(python -m certifi | tr -d '\r\n')"
157+
echo "SSL_CERT_FILE=$CERT_PATH" >> "$CIRRUS_ENV"
156158
<<: *test-template
157159
depends_on: [build, base-test]
158160

159161
finalize_task:
160-
container: {image: "python:3.10-bullseye"}
162+
container: {image: "python:3.12-trixie"}
161163
depends_on: [test]
162164
<<: *task-template
163165
install_script: pip install 'coveralls<4'
164166
# ^-- https://github.com/TheKevJames/coveralls-python/issues/434
165167
finalize_coverage_script: coveralls --finish
166168

167169
linkcheck_task:
168-
name: linkcheck (Linux - 3.10)
170+
name: linkcheck (Linux - 3.12)
169171
only_if: $BRANCH =~ "^(main|master)$"
170-
container: {image: "python:3.10-bullseye"}
172+
container: {image: "python:3.12-trixie"}
171173
depends_on: [finalize]
172174
allow_failures: true
173175
<<: *task-template
@@ -178,8 +180,8 @@ linkcheck_task:
178180
# # The following task is already covered by a GitHub Action,
179181
# # (commented to avoid errors when publishing duplicated packages to PyPI)
180182
# publish_task:
181-
# name: publish (Linux - 3.10)
182-
# container: {image: "python:3.10-bullseye"}
183+
# name: publish (Linux - 3.12)
184+
# container: {image: "python:3.12-trixie"}
183185
# depends_on: [build, base-test, test]
184186
# only_if: $CIRRUS_TAG =~ 'v\d.*' && $CIRRUS_USER_PERMISSION == "admin"
185187
# <<: *task-template

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ passenv =
1616
HOME
1717
SETUPTOOLS_*
1818
VALIDATE_PYPROJECT_*
19+
SSL_CERT_FILE
1920
dependency_groups = test
2021
extras = all
2122
commands =

0 commit comments

Comments
 (0)