Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixuan Fu committed Jan 15, 2021
1 parent 3271391 commit 72174b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[run]
; source =
; source =
; ai
; machine
; lab/pyutils
Expand All @@ -12,5 +12,5 @@ parallel = True
; the first path is the path on the local (travis) filesystem
; the second path is the path as it appears within the Docker container
source =
$TRAVIS_BUILD_DIR
$GITHUB_WORKSPACE
/appsrc/
6 changes: 4 additions & 2 deletions .github/workflows/pennai_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: Run Unit Tests
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github-actions
run: |
git lfs fetch --all
docker run -v $(pwd):/appsrc -w /appsrc pennai_unit_tester mocha machine/test/test.js
Expand All @@ -68,7 +69,8 @@ jobs:
ai/tests/lab_*.py \
ai/tests/test_re*.py \
ai/tests/test_k*utils.py
coverage combine
coveralls
build_pypkg:
name: Unit Tests for scikit-learn API
# The type of runner that the job will run on
Expand Down Expand Up @@ -108,7 +110,7 @@ jobs:
build_docs:
name: Doc Builder
needs: [build_int_test, build_web_app]
needs: [build_int_test, build_web_app]
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
ai/tests/lab_*.py
ai/tests/test_re*.py
ai/tests/test_k*utils.py"
- coverage combine
#- coverage combine
#- docker cp pennai_unit_tester:/.coverage ./
- coveralls
#- coveralls
- stage: Test
name: "Unit Tests for scikit-learn API"
install:
Expand Down

0 comments on commit 72174b7

Please sign in to comment.