Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 12 additions & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
Loading