-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (43 loc) · 1.31 KB
/
run-tests.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
name: Run Tests
on:
workflow_dispatch: # Allows this workflow to be manually triggered
push: # Run for every push to and PR filed against main (renamed from master)
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 * * *" # At the end of every day
jobs:
build:
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [ubuntu-20.04, ubuntu-latest]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
exclude:
- os-version: ubuntu-latest
python-version: "3.5"
- os-version: ubuntu-latest
python-version: "3.6"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make install-deps
- name: Check syntax and enforce PEP8, 127 char Github editor width
run: make check
- name: Run unit tests with coverage
# Exclude dependencies in coverage report with --omit
run: make coverage
- name: Check Coverage Results
# Could gate here to prevent pass under certain coverage %
run: make coverage-report