feat(ISSUE-3): Coveralls (#12)

* feat(ISSUE-3): Coveralls

* feat(ISSUE-3): Run coveralls

* feat(ISSUE-3): use github token

* feat(ISSUE-3): Try again

* feat(ISSUE-3): env instead of with

* feat(ISSUE-3): Fix yaml

* feat(ISSUE-3): try try and try again

* feat(ISSUE-3): t

* feat(ISSUE-3): t2

* feat(ISSUE-3): Adding relative files config

* feat(ISSUE-3): Adding relative files config

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
main
Thu Trang Pham 2021-02-19 23:17:38 -08:00 committed by GitHub
parent 37c12b8ccb
commit 8c60b4565c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 4 deletions

2
.coveragerc 100644
View File

@ -0,0 +1,2 @@
[run]
relative_files = True

View File

@ -1,10 +1,9 @@
name: Tests name: Tests
on: [push] on: [pull_request]
jobs: jobs:
build: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -30,6 +29,20 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest - name: Unit Test
run: | run: |
make test make test
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true