Skip to content

Commit 688eb33

Browse files
committed
added job for code coverage
1 parent 4f03814 commit 688eb33

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/test-dev.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ on:
99
- dev
1010

1111
jobs:
12-
build:
13-
12+
build-and-test:
1413
runs-on: ${{ matrix.os }}
1514
strategy:
1615
matrix:
@@ -30,7 +29,20 @@ jobs:
3029
- name: Test with pytest
3130
run: |
3231
pytest
33-
- name: Generate test coverage
34-
run: |
35-
py.test --cov-report term --cov=nyoka/
36-
codecov
32+
test-coverage:
33+
needs: build-and-test
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-python@v2
38+
with:
39+
python-version: 3.6
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip==20.2.2
43+
python -m pip install -e .
44+
python nyoka/tests/_install_dependencies.py
45+
- name: Generate test coverage
46+
run: |
47+
py.test --cov-report term --cov=nyoka/
48+
codecov

0 commit comments

Comments
 (0)