diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf4f47a0a3..0d008e2b07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -83,7 +83,12 @@ jobs: - check-pandas13 - check-py39-pandas12 - check-py39-pandas11 - # - check-crosshair-cover + ## `-cover` is too slow under crosshair; use a custom split + # - check-crosshair-custom-cover/test_[a-d]* + # - check-crosshair-custom-cover/test_[e-i]* + # - check-crosshair-custom-cover/test_[j-r]* + # - check-crosshair-custom-cover/test_[s-z]* + # - check-crosshair-custom-pytest/test_* # - check-crosshair-nocover # - check-crosshair-niche - check-py38-oldestnumpy @@ -121,7 +126,14 @@ jobs: sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-6.0 - name: Run tests - run: TASK=${{ matrix.task }} ./build.sh + run: | + export TASK=${{ matrix.task }} + if [[ $TASK == check-crosshair-custom-* ]]; then + GROUP="${TASK#check-crosshair-custom-}" + ./build.sh check-crosshair-custom -- -n auto $(cd hypothesis-python ; echo tests/$GROUP) + else + ./build.sh + fi - name: Upload coverage data uses: actions/upload-artifact@v2 # Invoke the magic `always` function to run on both success and failure. diff --git a/tooling/src/hypothesistooling/__main__.py b/tooling/src/hypothesistooling/__main__.py index 5a3b593c8e..367c1a28da 100644 --- a/tooling/src/hypothesistooling/__main__.py +++ b/tooling/src/hypothesistooling/__main__.py @@ -520,7 +520,7 @@ def standard_tox_task(name, py=ci_version): standard_tox_task("py39-pandas11", py="3.9") standard_tox_task("py39-pandas12", py="3.9") -for kind in ("cover", "nocover", "niche"): +for kind in ("cover", "nocover", "niche", "custom"): standard_tox_task(f"crosshair-{kind}") standard_tox_task("py38-oldestnumpy", py="3.8")