| 1 |
name: build |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
workflow_dispatch: |
| 10 |
jobs: |
| 11 |
test: |
| 12 |
runs-on: ubuntu-latest |
| 13 |
timeout-minutes: 10 |
| 14 |
strategy: |
| 15 |
fail-fast: false |
| 16 |
matrix: |
| 17 |
python-version: |
| 18 |
- "3.8" |
| 19 |
- "3.9" |
| 20 |
- "3.10" |
| 21 |
- "3.11" |
| 22 |
- "3.12" |
| 23 |
- "3.13" |
| 24 |
- "3.14" |
| 25 |
- "pypy-3.9" |
| 26 |
steps: |
| 27 |
- uses: actions/checkout@v3 |
| 28 |
- uses: actions/setup-python@v4 |
| 29 |
with: |
| 30 |
python-version: ${{ matrix.python-version }} |
| 31 |
- name: Print Python version under test |
| 32 |
run: python --version |
| 33 |
- name: Install test dependencies |
| 34 |
run: python -m pip install --editable .[test] |
| 35 |
- name: Test |
| 36 |
run: python -m unittest --verbose |