Skip to content

Commit 84d984c

Browse files
committed
Switch to tox.toml
1 parent 58be948 commit 84d984c

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ jobs:
7272
run: python -m pip install tox
7373

7474
- name: Run tests
75-
run: python -m tox -c tox.toml -e ci-${{ matrix.backend }} -- --verbose
75+
if: matrix.python != '3.9' && matrix.python != 'pypy-3.9'
76+
run: python -m tox -e ci-${{ matrix.backend }} -- --verbose
77+
78+
- name: Run tests (3.9)
79+
if: matrix.python == '3.9' || matrix.python == 'pypy-3.9'
80+
run: python -m tox -c tox-ci-py39.ini -e ci-${{ matrix.backend }} -- --verbose
7681

7782
docs:
7883
# Test documentation builds.

tox-ci-py39.ini

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
; This tox config only exists to support running from Python 3.9.
2+
3+
[tox]
4+
; Hyperscan does not have wheels for PyPy 3.9.
5+
envlist =
6+
py39
7+
py39-hyperscan
8+
py39-re2
9+
pypy39
10+
isolated_build = True
11+
12+
[testenv]
13+
commands = python -m unittest discover -t . -s tests/ {posargs}
14+
package = wheel
15+
16+
[testenv:ci-base]
17+
; Placeholder env for base (only simple backend) for CI.
18+
19+
[testenv:ci-hyperscan]
20+
; Hyperscan env for CI.
21+
extras = hyperscan
22+
install_command = python -I -m pip install --only-binary=hyperscan {opts} {packages}
23+
24+
[testenv:ci-re2]
25+
; Re2 env for CI.
26+
extras = google-re2
27+
install_command = python -I -m pip install --only-binary=google-re2 {opts} {packages}
28+
29+
[testenv:py39-hyperscan]
30+
extras = hyperscan
31+
install_command = python -I -m pip install --only-binary=hyperscan {opts} {packages}
32+
33+
[testenv:py39-re2]
34+
extras = google-re2
35+
install_command = python -I -m pip install --only-binary=google-re2 {opts} {packages}
36+
37+
;; Compiling hyperscan fails on PyPy 3.9.
38+
;[testenv:pypy39-hyperscan]
39+
;extras = hyperscan

0 commit comments

Comments
 (0)