Skip to content

Commit

Permalink
Review codecov configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 12, 2024
1 parent ee38bea commit 079d92f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 8 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,11 @@ 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 079d92f

Please sign in to comment.