Skip to content

Commit 29fb231

Browse files
committed
CI: Add hyperscan tests
1 parent 7b46a03 commit 29fb231

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@ on:
1010

1111
jobs:
1212
test:
13-
name: Test / ${{ matrix.python }} / ${{ matrix.os }}
13+
name: Test / ${{ matrix.python }} (${{ matrix.bundle }}) / ${{ matrix.os }}
1414
runs-on: ${{ matrix.os }}-latest
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu, macos, windows]
1919
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy-3.9", "pypy-3.10", "pypy-3.11"]
20+
bundle: [base, hyperscan]
21+
exclude:
22+
- python: "pypy-3.9"
23+
bundle: hyperscan
24+
- python: "pypy-3.10"
25+
bundle: hyperscan
26+
- python: "pypy-3.11"
27+
bundle: hyperscan
2028

2129
steps:
2230
- uses: actions/checkout@v4
@@ -31,7 +39,7 @@ jobs:
3139
run: python -m pip install tox
3240

3341
- name: Run tests
34-
run: python -m tox -e py -- --verbose
42+
run: python -m tox -e ci-${{ matrix.bundle }} -- --verbose
3543

3644
docs:
3745
# Test documentation builds.

tox.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
2-
# Hyperscan does not have a wheel for Python 3.15 yet.
3-
# Hyperscan does not have wheels for PyPy.
2+
; Hyperscan does not have a wheel for Python 3.15 yet.
3+
; Hyperscan does not have wheels for PyPy.
44
envlist =
55
py{39, 310, 311, 312, 313, 314, 315}
66
py{39, 310, 311, 312, 313, 314}-hyperscan
@@ -18,6 +18,14 @@ commands = sphinx-build -aWEnqb html doc/source doc/build
1818
deps = -rdoc/requirements.txt
1919
extras =
2020

21+
[testenv:ci-base]
22+
; Placeholder env for base (only simple backend) for CI.
23+
24+
[testenv:ci-hyperscan]
25+
; Hyperscan env for CI.
26+
extras = hyperscan
27+
install_command = python -I -m pip install --only-binary=hyperscan {opts} {packages}
28+
2129
[testenv:py39-hyperscan]
2230
extras = hyperscan
2331
install_command = python -I -m pip install --only-binary=hyperscan {opts} {packages}

0 commit comments

Comments
 (0)