Skip to content

Commit

Permalink
Carryover codecov coverage (#680)
Browse files Browse the repository at this point in the history
* Flagged unittests

Flagging is basically a way to give a category to unittests (grouping
them together)

* Enable carryover of all test runs

Given that we have a monorepo, we do not run all tests every time.
carryover makes codecov use any previous run as an oracle if a
submission is missing coverage data for an existing flag

* Renamed all providers with provider- prefix
  • Loading branch information
Hook25 authored Aug 23, 2023
1 parent 9bdcee9 commit 0e0e9d8
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tox-checkbox-ng.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,checkbox-ng
3 changes: 3 additions & 0 deletions .github/workflows/tox-checkbox-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,checkbox-support
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-base
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-certification-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-certification-client
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-certification-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-certification-server
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-gpgpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-gpgpu
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-iiotg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-iiotg
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-resource
3 changes: 3 additions & 0 deletions .github/workflows/tox-provider-sru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
run: tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,providers,provider-sru
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ coverage:
patch:
default:
target: 90%
flag_manageemnt:
default_rules:
# carryforward means if a test was not run again, use the previous
# coverage result for the current flag (part)
carryforward: true

0 comments on commit 0e0e9d8

Please sign in to comment.