-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (47 loc) · 1.37 KB
/
test.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Test
strategy:
matrix:
# If changing how many times tests are run, must also change in codecov.yml
# to ensure test coverage is reported only after all tests have finished
include:
- python-version: "3.7.1"
os: "ubuntu-20.04"
- python-version: "3.7.2"
os: "ubuntu-20.04"
- python-version: "3.8.0"
os: "ubuntu-20.04"
- python-version: "3.9.0"
os: "ubuntu-20.04"
- python-version: "3.10.0"
os: "ubuntu-20.04"
- python-version: "3.11.0"
os: "ubuntu-20.04"
- python-version: "3.12.0"
os: "ubuntu-20.04"
- python-version: "3.13.0"
os: "ubuntu-20.04"
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: '${{ matrix.python-version }}'
- name: "Install python dependencies"
run: |
pip install ".[dev,ci]"
- name: "Run type checking"
run: |
mypy python test.py --disable-error-code import
- name: "Run tests"
run: |
coverage run -m unittest -v
- uses: codecov/codecov-action@v3