Skip to content

Commit 7ac6bdd

Browse files
committed
Explicitly set cert file location for Windows tests on Cirrus CI
1 parent 5b36c10 commit 7ac6bdd

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.cirrus.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ windows_task:
150150
- ps: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
151151
- choco install -y --no-progress python3 --version=3.12.10 --params "/NoLockdown"
152152
- choco install -y --no-progress curl
153-
- pip install --upgrade certifi
153+
- python -m pip install --upgrade certifi
154154
- 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"
155158
<<: *test-template
156159
depends_on: [build, base-test]
157160

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)