Skip to content

Commit 92cf855

Browse files
committed
Create workflow for Codecov
1 parent 55b9049 commit 92cf855

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Coverage Update
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
run:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
16+
- name: Setup Python
17+
uses: actions/setup-python@master
18+
with:
19+
python-version: 3.9
20+
21+
- name: Generate coverage report
22+
run: |
23+
pip install coverage
24+
coverage xml --omit=amazon/*,*/sdk/*
25+
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v2
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
fail_ci_if_error: true
31+
files: ./coverage.xml
32+
flags: unittests
33+
name: codecov-umbrella
34+
path_to_write_report: ./coverage/codecov_report.txt
35+
verbose: true

0 commit comments

Comments
 (0)