Skip to content

Commit 388b590

Browse files
committed
Initial commit of build.yml changes for codecov
1 parent b539359 commit 388b590

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
22

3+
env:
4+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5+
36
on:
47
push:
58

@@ -21,8 +24,11 @@ jobs:
2124
- name: Install Dependencies
2225
run: |
2326
python -m pip install --upgrade pip
24-
pip install pytest mock
27+
pip install pytest mock coverage
2528
python setup.py install
2629
- name: Run Tests
27-
run: python -m pytest -v
28-
30+
run: |
31+
python -m pytest -v
32+
coverage run setup.py test
33+
- name: Upload to codecov.io
34+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)