Skip to content

Commit 52ba5d8

Browse files
surajitsurajit
authored andcommitted
add workflow
1 parent dc65a83 commit 52ba5d8

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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.9'
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.7
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@v2

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- "*/tests/*"

0 commit comments

Comments
 (0)