Skip to content

Commit f2239c7

Browse files
committed
1 parent 1928df3 commit f2239c7

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ jobs:
3535

3636
- name: Export coverage data as LCOV
3737
run: coverage lcov -o coverage.lcov
38+
39+
- name: Upload coverage data to Qlty Cloud
40+
uses: qltysh/qlty-action/coverage@main
41+
with:
42+
oidc: true
43+
files: coverage.lcov

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# example-python
1+
# Qlty Python Coverage Example
2+
3+
[Qlty](https://qlty.sh) is a Code Health Platform with support for code coverage.
4+
5+
This repository is an example using Qlty to track code coverage for a Python project. Coverage data is generated during the Python unit test build, and then uploaded to Qlty.
6+
7+
This repository uses [Coverage.py](https://coverage.readthedocs.io/) to generate the coverage data.
8+
9+
## Requirements
10+
11+
- Python 3
12+
- Coverage.py v7 or above
13+
- An account on [Qlty Cloud](https://qlty.sh) (free)
14+
15+
> [!NOTE]
16+
>
17+
> This repository is using GitHub's OpenID Connect (OIDC) to authenticate the coverage upload with Qlty Cloud instead of storing a coverage token as a GitHub Actions secret.
18+
19+
## Set up
20+
21+
See [`.github/workflows/main.yml`](./.github/workflows/main.yml) in this repository for a basic configuration.
22+
23+
## Documentation
24+
25+
- [Advanced code coverage configuration](https://example.com)
26+
- [Alternative supported CI providers](https://example.com)
27+
28+
## Help and feedback
29+
30+
Join the our [Slack Community](https://example.com) for help and to provide feedback that we'll use to improve Qlty.
31+
32+
## License
33+
34+
[MIT License](./LICENSE.md)

0 commit comments

Comments
 (0)