Skip to content

Commit 3620c25

Browse files
committed
all tests passing
1 parent 0dfa660 commit 3620c25

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ jobs:
3838
3939
- name: Upload coverage
4040
uses: codecov/codecov-action@v4
41+
if: always() # Always run coverage upload even if tests fail
4142
with:
4243
file: ./coverage.xml
43-
fail_ci_if_error: true
44+
fail_ci_if_error: false # Don't fail if codecov is down
45+
token: ${{ secrets.CODECOV_TOKEN }} # Required for public repos
46+
verbose: true # Optional: for debugging
47+
name: codecov-${{ matrix.python-version }} # Optional: name per Python version
4448

4549
lint:
4650
runs-on: ubuntu-latest

codecov.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
codecov:
2+
require_ci_to_pass: true
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
9+
status:
10+
project:
11+
default:
12+
target: auto
13+
threshold: 1%
14+
paths:
15+
- "src/"
16+
patch:
17+
default:
18+
target: auto
19+
threshold: 1%
20+
21+
parsers:
22+
gcov:
23+
branch_detection:
24+
conditional: yes
25+
loop: yes
26+
method: no
27+
macro: no
28+
29+
comment:
30+
layout: "reach,diff,flags,tree"
31+
behavior: default
32+
require_changes: false
33+
34+
ignore:
35+
- "tests/**"
36+
- "scripts/**"
37+
- "examples/**"
38+
- "docs/**"
39+
- "*.md"
40+
- "setup.py"
41+
- "**/__pycache__/**"
42+
- "**/.pytest_cache/**"

0 commit comments

Comments
 (0)