| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: ["master"] |
| 6 |
pull_request: |
| 7 |
branches: ["master"] |
| 8 |
|
| 9 |
jobs: |
| 10 |
tox: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
strategy: |
| 13 |
max-parallel: 7 |
| 14 |
matrix: |
| 15 |
python-version: |
| 16 |
- 3.8 |
| 17 |
- 3.9 |
| 18 |
- "3.10" |
| 19 |
- "3.11" |
| 20 |
- "3.12" |
| 21 |
- "3.13" |
| 22 |
- pypy-3.9 |
| 23 |
- pypy-3.10 |
| 24 |
|
| 25 |
steps: |
| 26 |
- uses: actions/checkout@v4 |
| 27 |
- uses: actions/setup-python@v5 |
| 28 |
with: |
| 29 |
python-version: ${{ matrix.python-version }} |
| 30 |
allow-prereleases: true |
| 31 |
- name: Install tox |
| 32 |
run: | |
| 33 |
python -m pip install --upgrade pip setuptools |
| 34 |
pip install --upgrade tox tox-gh-actions |
| 35 |
- name: Initialize tox envs |
| 36 |
run: | |
| 37 |
tox --parallel auto --notest |
| 38 |
- name: Test with tox |
| 39 |
run: | |
| 40 |
tox --parallel 0 |
| 41 |
- uses: codecov/codecov-action@v4 |
| 42 |
with: |
| 43 |
file: ./coverage.xml |