Skip to content

Commit

Permalink
Merge pull request #527 from chillkang/use-codecov-config
Browse files Browse the repository at this point in the history
Use codecov config
  • Loading branch information
chillkang authored May 2, 2024
2 parents 205b1d9 + feefc38 commit d04db6f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ jobs:
- name: Run tests with coverage
run: |
SECRET_KEY=insecure_secret_key coverage run --source=. -m unittest discover tests
bash <(curl -s https://codecov.io/bash) -cF python
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: python

check-inclusive-naming:
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
codecov:
require_ci_to_pass: true
branch: main
allow_coverage_offsets: true

comment:
layout: "diff, files"
behavior: default
require_changes: false
require_base: true
require_head: true

coverage:
status:
python:
target: auto
threshold: 0%
flags:
- python

0 comments on commit d04db6f

Please sign in to comment.