Skip to content

Commit

Permalink
Review codecov configuration (#1667)
Browse files Browse the repository at this point in the history
* Review codecov configuration

Related: ansible/team-devtools#169

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ssbarnea and pre-commit-ci[bot] authored Feb 12, 2024
1 parent ee38bea commit 63d10c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
branches: # any integration branch but not tag
- "main"
pull_request:
branches:
- "main"

jobs:
pre:
Expand Down Expand Up @@ -82,6 +84,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.passed_name }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true # optional (default = false)
- name: Change accessibility for cache
Expand All @@ -95,6 +98,10 @@ jobs:
- tox
runs-on: ubuntu-22.04
steps:
- name: Check codecov.io status
if: github.event_name == 'pull_request'
uses: coactions/codecov-status@main

- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
Expand Down
5 changes: 2 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
coverage:
status:
project:
default:
threshold: 0.3%
patch: true # we want github annotations

0 comments on commit 63d10c6

Please sign in to comment.