| 1 |
name: Run tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
pull_request: |
| 6 |
branches-ignore: [ master ] |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
jobs: |
| 12 |
build: |
| 13 |
|
| 14 |
runs-on: ubuntu-latest |
| 15 |
strategy: |
| 16 |
fail-fast: false |
| 17 |
matrix: |
| 18 |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"] |
| 19 |
os: [ubuntu-latest, macOS-latest, windows-latest] |
| 20 |
|
| 21 |
steps: |
| 22 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 23 |
- name: Set up Python ${{ matrix.python-version }} |
| 24 |
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 |
| 25 |
with: |
| 26 |
python-version: ${{ matrix.python-version }} |
| 27 |
cache: 'pip' |
| 28 |
allow-prereleases: true |
| 29 |
- name: Install dependencies |
| 30 |
run: | |
| 31 |
python scripts/ci/install |
| 32 |
- name: Run tests |
| 33 |
run: | |
| 34 |
python scripts/ci/run-tests --with-cov |
| 35 |
- name: codecov |
| 36 |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d |
| 37 |
with: |
| 38 |
directory: tests |