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
parent
37c12b8ccb
commit
8c60b4565c
|
|
@ -0,0 +1,2 @@
|
||||||
|
[run]
|
||||||
|
relative_files = True
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue