Skip to content

CI: use new version of codecov action #5734

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

Merged
merged 2 commits into from
Jun 26, 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
34 changes: 7 additions & 27 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,7 @@ coverage:
# - excluding: **/test_*.py
#
paths: ["python3/**", "!**/test_*.py"]

#
# For python3/** (excluding tests):
#
# For python3, coverage should not be reduced compared to its base:
#
target: auto
target: 80%

#
# Exception: the threshold value given is allowed
Expand All @@ -183,12 +177,6 @@ coverage:
#
threshold: 20%

# Checks each Python version separately:
python-3.11:
flags: ["python3.11"]
python-2.7:
flags: ["python2.7"]

#
# Project limits
# --------------
Expand Down Expand Up @@ -218,7 +206,7 @@ coverage:
tests:
# Ensure that all tests are executed (tests themselves must be 100% covered)
target: 98%
paths: ["**/test_*.py"]
paths: ["python3/tests/test_*.py"]


#
Expand All @@ -235,24 +223,15 @@ component_management:
- type: project
# `auto` will use the coverage from the base commit (pull request base
# or parent commit) coverage to compare against.
target: auto
target: 48
threshold: 2%

- type: patch
target: auto
threshold: 10%
target: 80
threshold: 5%

individual_components:

- component_id: scripts # this is an identifier that should not be changed
name: scripts # this is a display name, and can be changed freely
# The list of paths that should be in- and excluded in this component:
paths: ["scripts/**", "!scripts/examples/**", "!**/test_*.py"]

- component_id: scripts/examples
name: scripts/examples
paths: ["scripts/examples/**", "!scripts/**/test_*.py"]

- component_id: ocaml
name: ocaml
paths: ["ocaml/**", "!**/test_*.py"]
Expand All @@ -270,4 +249,5 @@ component_management:

- component_id: test_cases
name: test_cases
paths: ["**/test_*.py"]
paths: ["python3/tests/test_*.py"]

7 changes: 4 additions & 3 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ jobs:
PYTHONDEVMODE: yes

- name: Upload Python ${{matrix.python-version}} coverage report to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
directory: .git
files: coverage${{matrix.python-version}}.xml
env_vars: OS,PYTHON
fail_ci_if_error: false
env_vars: OS,PYTHON
files: coverage${{matrix.python-version}}.xml
flags: python${{matrix.python-version}}
name: coverage${{matrix.python-version}}
use_oidc: true
verbose: true

- uses: dciborow/action-pylint@0.1.0
Expand Down
Loading