-
Notifications
You must be signed in to change notification settings - Fork 53
71 lines (69 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ 'master' ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
name: Run Linters
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Tox
run: pip install tox
- name: Run Linters
working-directory: ./python
run: tox -e lint
type-checks:
runs-on: ubuntu-latest
name: Type Checks
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Tox
run: pip install tox
- name: Run Type Checks
working-directory: ./python
run: tox -e type-check
tests:
runs-on: ubuntu-latest
name: Run Tests on all supported DBR configurations
strategy:
fail-fast: false
matrix:
include:
- dbr: "dbr73"
python-version: "3.7"
- dbr: "dbr91"
python-version: "3.8"
- dbr: "dbr104"
python-version: "3.8"
- dbr: "dbr113"
python-version: "3.9"
- dbr: "dbr122"
python-version: "3.9"
- dbr: "dbr133"
python-version: "3.10"
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
run: pip install tox
- name: Run Tests
working-directory: ./python
run: tox -e ${{ matrix.dbr }}