Skip to content

Commit 0a297bc

Browse files
committed
[gh/actions] Add coverage
1 parent 1fc6f3c commit 0a297bc

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
@@ -31,3 +31,24 @@ jobs:
3131
pip install -r requirements-test.txt
3232
- name: Run tests
3333
run: pytest
34+
run-coverall:
35+
runs-on: [ubuntu-latest]
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup Python 3.8
39+
uses: actions/setup-python@v2
40+
with:
41+
python-version: "3.8"
42+
- name: Display Python version
43+
run: python -c "import sys; print(sys.version)"
44+
- name: Install dependencies
45+
run: |
46+
python setup.py install
47+
pip install pytest coveralls
48+
- name: Create coverage
49+
run: |
50+
coverage run --source=bren -m pytest test/ --ignore test/test_dependencies.py
51+
- name: Submit to coveralls
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
run: coveralls --service=github

0 commit comments

Comments
 (0)