-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.22 KB
/
coverage.yml
File metadata and controls
47 lines (40 loc) · 1.22 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
name: Coverage
on:
workflow_call:
secrets:
COVERALLS_REPO_TOKEN:
required: true
CODACY_PROJECT_TOKEN:
required: true
jobs:
coverage:
name: windows-2025 py3.14
runs-on: windows-2025
steps:
- name: "Checkout"
uses: actions/checkout@v6
- 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' -m 'not qt6' --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@v7
if: always()
with:
name: coverage_3_14
path: |
covhtml/*
coverage.xml
retention-days: 4
- name: "Run Coveralls coverage"
uses: coverallsapp/github-action@v2
- name: "Run Codacy coverage"
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml