-
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (47 loc) · 1.4 KB
/
coverage.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
name: Coverage
on:
workflow_call:
secrets:
COVERALLS_REPO_TOKEN:
required: true
CODACY_PROJECT_TOKEN:
required: true
jobs:
coverage:
name: windows-latest py3.13
runs-on: windows-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Set up Python environment"
uses: ./.github/actions/setup-python
- name: "Test with pytest"
env:
PYSIDE_DESIGNER_PLUGINS: .
PYTEST_QT_API: PySide6
DCSPY_NO_MSG_BOXES: 1
run: |
python -m pytest -v -m 'not e2e' --img_precision 0 --disable-warnings --cov=dcspy --cov-report=xml --cov-report=html --cov-report=term-missing
- name: "Upload pytest results"
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage_3_13
path: |
covhtml/*
coverage.xml
retention-days: 4
- name: "Test Coveralls"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
pip install coveralls
coveralls
- name: "Run codacy-coverage"
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
pip install codacy-coverage
coverage xml -o codacy_coverage.xml
python-codacy-coverage -r codacy_coverage.xml