Skip to content

Commit a8a9c7b

Browse files
committed
Move PR code coverage upload to PR check job to avoid rerunning tests
Signed-off-by: Angel Misevski <[email protected]>
1 parent fda3bc6 commit a8a9c7b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
branches: [ main ]
97

108
jobs:
119
coverage-report:
@@ -43,7 +41,7 @@ jobs:
4341
run: |
4442
python -m pip install --upgrade pip yq
4543
make test
46-
-
44+
-
4745
name: Build Codecov report
4846
uses: codecov/codecov-action@v1
4947
with:

.github/workflows/pr.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ jobs:
111111
run: |
112112
python -m pip install --upgrade pip yq
113113
make test
114+
-
115+
name: Build Codecov report
116+
uses: codecov/codecov-action@v1
117+
with:
118+
files: cover.out
119+
114120

115121
docker:
116122
name: Check docker build

0 commit comments

Comments
 (0)