Skip to content

Commit 3f08702

Browse files
committed
Cleanup coverage workflow configuration
1 parent d0202a8 commit 3f08702

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ jobs:
6262
pip install -e .
6363
6464
- name: Run tests and collect coverage
65-
run: pytest . --cov torchcfm --ignore=runner --ignore=examples --ignore=torchcfm/models/
65+
run: pytest . --cov torchcfm --ignore=runner --ignore=examples --ignore=torchcfm/models/ --cov-fail-under=30
6666

6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v3
6969
with:
7070
name: codecov-torchcfm
7171
verbose: true
72-
fail_ci_if_error: true

.github/workflows/test_runner.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ jobs:
6464
pip install -e .
6565
6666
- name: Run tests and collect coverage
67-
run: pytest runner --cov runner # NEEDS TO BE UPDATED WHEN CHANGING THE NAME OF "src" FOLDER
67+
run: pytest runner --cov runner --cov-fail-under=30 # NEEDS TO BE UPDATED WHEN CHANGING THE NAME OF "src" FOLDER
6868

6969
- name: Upload coverage to Codecov
7070
uses: codecov/codecov-action@v3
7171
with:
7272
name: codecov-runner
7373
verbose: true
74-
fail_ci_if_error: true

0 commit comments

Comments
 (0)