Skip to content

Commit 8b7f212

Browse files
Armando BanuelosArmando Banuelos
Armando Banuelos
authored and
Armando Banuelos
committed
feat: adding codecov to run-coverage workflow
1 parent 4256d3d commit 8b7f212

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/run-coverage.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,10 @@ jobs:
5656
5757
- name: Run and report code coverage
5858
run: |
59-
pytest --cov=.
59+
pytest --cov=. --cov-report json
60+
61+
- name: Upload coverage reports to Codecov
62+
uses: codecov/[email protected]
63+
with:
64+
token: ${{ secrets.CODECOV_TOKEN }}
65+
slug: BerkeleyLearnVerify/Scenic

codecov.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
codecov:
2+
coverage:
3+
precision: 2
4+
round: down
5+
range: "70...100"
6+
status:
7+
project:
8+
default:
9+
target: 80%
10+
threshold: 1%
11+
changes:
12+
target: 80%
13+
threshold: 1%
14+
comment:
15+
layout: "reach, diff, flags, files"
16+
behavior: default
17+
require_ci_to_pass: true
18+
cli:
19+
plugins:
20+
pycoverage:
21+
report_type: "json"

0 commit comments

Comments
 (0)