Skip to content

Commit fb4ddd8

Browse files
authored
Merge pull request #791 from Trusted-AI/development_maintenance_151
Test codecov with GitHub Actions
2 parents 25982c5 + 19706eb commit fb4ddd8

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,26 @@ jobs:
127127
pip list
128128
- name: Run ${{ matrix.name }} Tests
129129
run: ./run_tests.sh ${{ matrix.framework }}
130+
- name: Save code coverage report
131+
if: ${{ matrix.framework != 'legacy' }}
132+
uses: actions/upload-artifact@v2
133+
with:
134+
name: ${{ matrix.name }} Code Coverage
135+
path: coverage.xml
136+
codecov:
137+
name: Upload to Codecov
138+
needs: test
139+
runs-on: ubuntu-latest
140+
steps:
141+
- name: Get Coverage Reports
142+
uses: actions/download-artifact@v2
143+
with:
144+
path: coverage
145+
- name: Upload Coverage Reports to Codecov
146+
uses: codecov/codecov-action@v1
147+
with:
148+
directory: coverage
149+
fail_ci_if_error: true
130150
style:
131151
name: Style Check
132152
runs-on: ubuntu-latest

codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
codecov:
22
bot: "codecov-io"
3-
ci:
4-
- "travis.org"
53
max_report_age: 24
64
disable_default_path_fixes: no
75
require_ci_to_pass: yes

0 commit comments

Comments
 (0)