Skip to content

Commit 0e8a989

Browse files
authored
Merge pull request #2664 from A5rocks/faster-mypy-tests
Make the mypy-based tests faster!
2 parents 493c915 + 7be61ff commit 0e8a989

File tree

2 files changed

+204
-119
lines changed

2 files changed

+204
-119
lines changed

ci.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ else
103103
INSTALLDIR=$(python -c "import os, trio; print(os.path.dirname(trio.__file__))")
104104
cp ../pyproject.toml $INSTALLDIR
105105

106+
# TODO: remove this once we have a py.typed file
107+
touch "$INSTALLDIR/py.typed"
108+
109+
# get mypy tests a nice cache
110+
MYPYPATH=".." mypy --config-file= --cache-dir=./.mypy_cache -c "import trio" >/dev/null 2>/dev/null || true
111+
106112
if pytest -r a -p trio._tests.pytest_plugin --junitxml=../test-results.xml --run-slow ${INSTALLDIR} --cov="$INSTALLDIR" --cov-report=xml --cov-config=../.coveragerc --verbose; then
107113
PASSED=true
108114
else

0 commit comments

Comments
 (0)