Skip to content

Commit

Permalink
CI config for crosshair
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jul 15, 2024
1 parent 85712ad commit 476a7ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 476a7ce

Please sign in to comment.