-
Notifications
You must be signed in to change notification settings - Fork 51
102 lines (90 loc) · 2.83 KB
/
test-all.yaml
File metadata and controls
102 lines (90 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Test All
permissions:
contents: read
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test / ${{ matrix.python }} (${{ matrix.backend }}) / ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- macos
- windows
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy-3.9"
- "pypy-3.10"
- "pypy-3.11"
backend:
- base
- hyperscan
- re2
exclude:
# Hyperscan does hot have wheels for Python 3.9 on Windows.
- os: windows
python: "3.9"
backend: hyperscan
# Hyperscan does not have wheels for PyPy 3.9 and 3.11.
- python: "pypy-3.9"
backend: hyperscan
- python: "pypy-3.11"
backend: hyperscan
# Hyperscan does hot have wheels for PyPy 3.10 on Mac.
- os: macos
python: "pypy-3.10"
backend: hyperscan
# Hyperscan does hot have wheels for PyPy 3.10 on Windows.
- os: windows
python: "pypy-3.10"
backend: hyperscan
# Re2 does hot have wheels for PyPy.
- python: "pypy-3.9"
backend: re2
- python: "pypy-3.10"
backend: re2
- python: "pypy-3.11"
backend: re2
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install tox
run: python -m pip install tox
- name: Run tests
if: matrix.python != '3.9' && matrix.python != 'pypy-3.9'
run: python -m tox -e ci-${{ matrix.backend }} -- --verbose
- name: Run tests (3.9)
if: matrix.python == '3.9' || matrix.python == 'pypy-3.9'
run: python -m tox -c tox-ci-py39.ini -e ci-${{ matrix.backend }} -- --verbose
docs:
# Test documentation builds.
# This environment mirrors the ReadTheDocs build environment.
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
with:
python-version: "3.13"
- name: Install tox
run: python -m pip install tox
- name: Run tests
run: python -m tox -e docs