Skip to content

Commit 4355e36

Browse files
authored
Merge pull request #232 from lostcontrol/replace-codecov-with-pytest-cov-action-15864949697760279009
Replace codecov with native GitHub pytest-cov action
2 parents afd469e + 3adee35 commit 4355e36

5 files changed

Lines changed: 9 additions & 145 deletions

File tree

.codecov.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/poupool.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
branches: [ "master" ]
88

99
permissions:
10-
contents: read
10+
contents: write
11+
pull-requests: write
1112

1213
jobs:
1314
build:
@@ -33,12 +34,13 @@ jobs:
3334
uv run pre-commit run -a
3435
- name: Test with pytest
3536
run: |
36-
uv run pytest --cov=controller --cov-report term test/
37+
uv run pytest --cov=controller --cov-report term --junitxml=pytest.xml --cov-report=term-missing:skip-covered test/ | tee pytest-coverage.txt
3738
- name: Test start the application
3839
run: |
3940
uv run python poupool.py --fake-devices --test-start
40-
- name: Upload coverage report
41-
run: |
42-
uv run codecov
43-
env:
44-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
41+
- name: Pytest coverage comment
42+
id: coverage
43+
uses: MishaKav/pytest-coverage-comment@main
44+
with:
45+
pytest-coverage-path: ./pytest-coverage.txt
46+
junitxml-path: ./pytest.xml

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Poupool - The swimming pool controller
22

33
[![Build Status](https://travis-ci.com/lostcontrol/poupool.svg?branch=master)](https://travis-ci.com/lostcontrol/poupool)
4-
[![codecov](https://codecov.io/gh/lostcontrol/poupool/branch/master/graph/badge.svg)](https://codecov.io/gh/lostcontrol/poupool)
54

65
Poupool is a swimming pool control software.
76

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dependencies = [
1919
dev = [
2020
"pre-commit==4.6.0",
2121
"ruff==0.15.22",
22-
"codecov==2.1.13",
2322
"pytest==9.1.1",
2423
"pytest-cov==7.1.0",
2524
"pytest-mock==3.15.1",

0 commit comments

Comments
 (0)