Add codecov for code coverage of python and javascript (#1170)

* Add codecov to Push Test workflow

* Empty commit

* Clear reports and tag each with flags

* Tag code reports by test

* Fix codecov tags

* One more fix
This commit is contained in:
Matt Weiden
2020-02-24 17:13:16 -08:00
committed by GitHub
parent 281154f591
commit 5c70cc5bcd
8 changed files with 134 additions and 6 deletions
+11 -3
View File
@@ -4,6 +4,7 @@ on: [push]
env:
JEST_ENV: prod
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
lint:
@@ -44,7 +45,10 @@ jobs:
- name: Install dependencies
run: make pydist install-dist dev-env-server
- name: Unit tests
run: make unit-test
run: |
make unit-test
bash <(curl -s https://codecov.io/bash) -k server -cF backend,python,unitTest
cd client && ./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,unitTest
smoke-tests:
runs-on: ubuntu-latest
@@ -71,7 +75,9 @@ jobs:
- name: Install dependencies
run: make pydist install-dist
- name: Smoke tests (without annotations feature)
run: cd client && make smoke-test
run: |
cd client && make smoke-test
./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTest
smoke-tests-annotations:
runs-on: ubuntu-latest
@@ -98,4 +104,6 @@ jobs:
- name: Install dependencies
run: make pydist install-dist
- name: Smoke tests (with annotations feature)
run: cd client && make smoke-test-annotations
run: |
cd client && make smoke-test-annotations
./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTestAnnotations