-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.04 KB
/
python-tests.yml
File metadata and controls
48 lines (38 loc) · 1.04 KB
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: Python tests
# Unit tests and coverage for test-scripts/*.py. Keep in sync with 'test-python' and
# 'test-python-coverage' Makefile targets.
on:
push:
paths:
- 'test-scripts/**/*.py'
- 'Makefile'
pull_request:
jobs:
test:
name: Python unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install test dependencies
run: pip install PyYAML
- name: Run Python unit tests
run: make test-python
coverage:
name: Python coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install test dependencies
run: pip install PyYAML coverage
- name: Run Python coverage (fail if < 90%)
run: make test-python-coverage