| 1 |
name: Tests |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
tests: |
| 7 |
runs-on: ubuntu-latest |
| 8 |
|
| 9 |
strategy: |
| 10 |
matrix: |
| 11 |
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy3.9', 'pypy3.10', 'pypy3.11'] |
| 12 |
|
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v7 |
| 15 |
|
| 16 |
- name: Set up Python ${{ matrix.python-version }} |
| 17 |
uses: actions/setup-python@v7 |
| 18 |
with: |
| 19 |
python-version: ${{ matrix.python-version }} |
| 20 |
|
| 21 |
- name: Install dependencies |
| 22 |
run: | |
| 23 |
python -m pip install --upgrade pip |
| 24 |
pip install "tox>=4.30,<5" "tox-gh-actions>=3.5,<4" |
| 25 |
|
| 26 |
- name: Run unit tests with tox |
| 27 |
run: tox |
| 28 |
|
| 29 |
tests-old: |
| 30 |
runs-on: ubuntu-22.04 |
| 31 |
|
| 32 |
strategy: |
| 33 |
matrix: |
| 34 |
python-version: ['3.7', '3.8'] |
| 35 |
|
| 36 |
steps: |
| 37 |
- uses: actions/checkout@v7 |
| 38 |
|
| 39 |
- name: Set up Python ${{ matrix.python-version }} |
| 40 |
uses: actions/setup-python@v7 |
| 41 |
with: |
| 42 |
python-version: ${{ matrix.python-version }} |
| 43 |
|
| 44 |
- name: Install dependencies |
| 45 |
run: | |
| 46 |
python -m pip install --upgrade pip |
| 47 |
pip install "tox>=4.8,<5" "tox-gh-actions>=3.5,<4" |
| 48 |
|
| 49 |
- name: Run unit tests with tox |
| 50 |
run: tox |