Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: tag codecov uploads with CI matrix vars #431

Merged
merged 4 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
env_vars: OS,PYTHON
flags: unittests
name: Code Coverage for unittests on [${{ matrix.os }}.python-${{ matrix.python-version }}]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

integration-test:
Expand Down
24 changes: 12 additions & 12 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
codecov:
require_ci_to_pass: yes
require_ci_to_pass: true

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: false

coverage:
precision: 2
round: down
range: "70...100"
status:
project: off
patch: off
project: false
patch: false

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
conditional: true
loop: true
method: false
macro: false