Skip to content

Commit 615b73c

Browse files
committed
[gh actions] Add codecov
1 parent bcccf80 commit 615b73c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,24 @@ jobs:
118118
env:
119119
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120120
run: coveralls --service=github
121+
run-codecov:
122+
runs-on: [ubuntu-latest]
123+
steps:
124+
- uses: actions/checkout@v2
125+
- name: Setup Python 3.10
126+
uses: actions/setup-python@v2
127+
with:
128+
python-version: "3.10"
129+
- name: Install dependencies
130+
run: |
131+
python setup.py install
132+
pip install -r requirements-test.txt
133+
pip install pytest pytest-cov
134+
- name: Create coverage
135+
run: |
136+
pytest --cov=./ --cov-report=xml
137+
- uses: codecov/codecov-action@v1
138+
with:
139+
name: Submit Codecov coverage
140+
files: ./coverage.xml
141+
verbose: true # optional (default = false)

0 commit comments

Comments
 (0)