forked from NVDARemote/remote-server
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.77 KB
/
Copy pathcoverage.yml
File metadata and controls
50 lines (47 loc) · 1.77 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
49
50
# Copyright 2025 NV Access Limited
#
# This file is part of the NVDA Remote Access Relay Server.
#
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
# Server. If not, see <https://www.gnu.org/licenses/>.
name: Run automated tests
on: push
jobs:
coverage:
name: Check coverage with coverage.py
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@v4.2.2
- uses: ./.github/actions/setup-environment
- name: Run unit tests
run: uv run coverage run
- name: Report coverage
run: uv run coverage report --format markdown >> $GITHUB_STEP_SUMMARY
- name: Generate coverage artifacts
if: ${{ failure() }}
run: |
uv run coverage html --fail-under 0
uv run coverage xml --fail-under 0
uv run coverage json --fail-under 0
uv run coverage lcov --fail-under 0
uv run coverage annotate
- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: Coverage reports
path: |
coverage.json
coverage.lcov
coverage.xml
htmlcov/
*.py,cover