Skip to content

Commit 57af22e

Browse files
authored
Create GitHub action for CodeCov
1 parent 2ebf108 commit 57af22e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CodeCov
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
env:
7+
OS: ubuntu-latest
8+
PYTHON: '3.6.8'
9+
steps:
10+
- uses: checkout@v2
11+
with:
12+
fetch-depth: ‘2’
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@master
16+
with:
17+
python-version: 3.6.8
18+
- name: Generate Report
19+
run: |
20+
pip install coverage
21+
coverage run -m unittest
22+
- name: Upload Coverage to Codecov
23+
uses: codecov/codecov-action@v1
24+
with:

0 commit comments

Comments
 (0)