-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.15 KB
/
CI.yaml
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
name: Run Tests
on:
pull_request:
push:
branches:
- "main"
- "breaking"
workflow_dispatch:
jobs:
run-tests-modern-python:
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ["ubuntu-latest"]
# Pull in the test script from run_tests and distribute python from matrix versions
uses: ./.github/workflows/run_tests.yaml
with:
python-version: ${{ matrix.python-version }}
runs-on: ${{ matrix.runs-on }}
requirements-file: ".github/requirements-${{ matrix.python-version }}.txt"
run-tests-legacy-python:
needs: run-tests-modern-python # Wait until tests pass on python 3.9+
strategy:
fail-fast: false # Legacy versions are much less stable - run tests independently
matrix: # Code works on py3.6, but type annotations are broken
python-version: ["3.7", "3.8"]
runs-on: ["ubuntu-20.04"]
uses: ./.github/workflows/run_tests.yaml
with:
python-version: ${{ matrix.python-version }}
runs-on: ${{ matrix.runs-on }}
requirements-file: ".github/requirements-${{ matrix.python-version }}.txt"