From 72174b75f236b0d3d9fb7b61bfc618e1175981ae Mon Sep 17 00:00:00 2001 From: Weixuan Fu Date: Fri, 15 Jan 2021 14:44:02 -0500 Subject: [PATCH] add coveralls --- .coveragerc | 4 ++-- .github/workflows/pennai_tests.yml | 6 ++++-- .travis.yml | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.coveragerc b/.coveragerc index f39d68e57..b9eb10941 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,5 +1,5 @@ [run] -; source = +; source = ; ai ; machine ; lab/pyutils @@ -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/ diff --git a/.github/workflows/pennai_tests.yml b/.github/workflows/pennai_tests.yml index 92616e5ca..8e5353185 100644 --- a/.github/workflows/pennai_tests.yml +++ b/.github/workflows/pennai_tests.yml @@ -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 @@ -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 @@ -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 diff --git a/.travis.yml b/.travis.yml index 1d245709d..e84a56159 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: