-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (41 loc) · 1.01 KB
/
coverage.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
37
38
39
40
41
42
name: Coverage
on: push
jobs:
run-radicalpy-coverage:
name: Run coverage on RadicalPy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python "3.11" 🐍
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
- name: Install packages 📦
run: >-
python -m
pip install -r requirements.txt
- name: Install coverage
run: >-
python -m
pip install coverage
- name: Reset coverage
run: >-
coverage erase
- name: Run coverage
run: >-
coverage run -a -m
unittest
discover -v
- name: Run examples
run: >-
for file in $(ls examples/aniso*.py); do
PYTHONPATH=. coverage run -a $file --fast
done
- name: Create report
run: >-
coverage report && coverage xml && ls -lrt
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage.xml