From 55e3cec647de484b3821107f2f905aeb25fd36d2 Mon Sep 17 00:00:00 2001 From: Yash Kuceriya Date: Thu, 9 Jul 2026 11:40:18 -0700 Subject: [PATCH] Skip SSL tests on Windows x86 CI --- .github/workflows/ci.yml | 1 + ci.sh | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8149f9c561..7c70d213d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -223,6 +223,7 @@ jobs: env: LSP: '${{ matrix.lsp }}' LSP_EXTRACT_FILE: '${{ matrix.lsp_extract_file }}' + SKIP_SSL_TESTS: ${{ matrix.arch == 'x86' && '1' || '0' }} - if: always() uses: codecov/codecov-action@v7 with: diff --git a/ci.sh b/ci.sh index 9362dbc727..6d8606d078 100755 --- a/ci.sh +++ b/ci.sh @@ -54,7 +54,14 @@ if [ "${NO_TEST_REQUIREMENTS-0}" == 1 ]; then python -m uv pip install pytest coverage -c test-requirements.txt flags="--skip-optional-imports" else - python -m uv pip install -r test-requirements.txt --no-deps + requirements_file=test-requirements.txt + if [ "${SKIP_SSL_TESTS-0}" == 1 ]; then + # cryptography no longer supports 32-bit Windows, and these + # dependencies are only needed by the SSL/DTLS tests skipped below. + requirements_file=test-requirements-no-ssl.txt + grep -Ev '^(cryptography|pyopenssl|trustme)==' test-requirements.txt > "$requirements_file" + fi + python -m uv pip install -r "$requirements_file" --no-deps flags="" fi @@ -114,6 +121,10 @@ cd empty INSTALLDIR=$(python -c "import os, trio; print(os.path.dirname(trio.__file__))") cp ../pyproject.toml "$INSTALLDIR" # TODO: remove this +if [ "${SKIP_SSL_TESTS-0}" == 1 ]; then + flags="$flags --ignore=${INSTALLDIR}/_tests/test_ssl.py --ignore=${INSTALLDIR}/_tests/test_dtls.py" +fi + # get mypy tests a nice cache MYPYPATH=".." mypy --config-file= --cache-dir=./.mypy_cache -c "import trio" >/dev/null 2>/dev/null || true