Skip to content

Commit 476a7ce

Browse files
committed
CI config for crosshair
1 parent 85712ad commit 476a7ce

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ jobs:
8383
- check-pandas13
8484
- check-py39-pandas12
8585
- check-py39-pandas11
86-
# - check-crosshair-cover
86+
## `-cover` is too slow under crosshair; use a custom split
87+
# - check-crosshair-custom-cover/test_[a-d]*
88+
# - check-crosshair-custom-cover/test_[e-i]*
89+
# - check-crosshair-custom-cover/test_[j-r]*
90+
# - check-crosshair-custom-cover/test_[s-z]*
91+
# - check-crosshair-custom-pytest/test_*
8792
# - check-crosshair-nocover
8893
# - check-crosshair-niche
8994
- check-py38-oldestnumpy
@@ -121,7 +126,14 @@ jobs:
121126
sudo apt-get update && \
122127
sudo apt-get install -y dotnet-sdk-6.0
123128
- name: Run tests
124-
run: TASK=${{ matrix.task }} ./build.sh
129+
run: |
130+
export TASK=${{ matrix.task }}
131+
if [[ $TASK == check-crosshair-custom-* ]]; then
132+
GROUP="${TASK#check-crosshair-custom-}"
133+
./build.sh check-crosshair-custom -- -n auto $(cd hypothesis-python ; echo tests/$GROUP)
134+
else
135+
./build.sh
136+
fi
125137
- name: Upload coverage data
126138
uses: actions/upload-artifact@v2
127139
# Invoke the magic `always` function to run on both success and failure.

tooling/src/hypothesistooling/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def standard_tox_task(name, py=ci_version):
520520
standard_tox_task("py39-pandas11", py="3.9")
521521
standard_tox_task("py39-pandas12", py="3.9")
522522

523-
for kind in ("cover", "nocover", "niche"):
523+
for kind in ("cover", "nocover", "niche", "custom"):
524524
standard_tox_task(f"crosshair-{kind}")
525525

526526
standard_tox_task("py38-oldestnumpy", py="3.8")

0 commit comments

Comments
 (0)