diff --git a/.github/workflows/javaTests.yml b/.github/workflows/javaTests.yml index 595298b8f48..f896d1fcaf0 100644 --- a/.github/workflows/javaTests.yml +++ b/.github/workflows/javaTests.yml @@ -147,7 +147,7 @@ jobs: run: mvn jacoco:report - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v4.2.0 if: github.repository_owner == 'apache' with: fail_ci_if_error: false diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 858e52e3c44..2e899d0e560 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -128,7 +128,7 @@ jobs: export SYSDS_QUIET=1 export LOG4JPROP=$SYSTEMDS_ROOT/src/test/resources/log4j.properties cd src/main/python - unittest-parallel -t . -s tests -v + unittest-parallel -t . -s tests -v --coverage-branch --coverage-xml --coverage-omit tests # python -m unittest discover -s tests -p 'test_*.py' echo "Exit Status: " $? @@ -136,7 +136,7 @@ jobs: run: | export LOG4JPROP=$(pwd)/src/test/resources/log4j.properties cd src/main/python - unittest-parallel -t . -s tests -v + unittest-parallel -t . -s tests -v --coverage-branch --coverage-xml --coverage-omit tests # python -m unittest discover -s tests -p 'test_*.py' echo "Exit Status: " $? @@ -154,3 +154,10 @@ jobs: - name: Check formatting according to Black (src/main/python/tests) run: | black --check src/main/python/tests + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4.2.0 + if: github.repository_owner == 'apache' + env: + files: src/main/python/.coverage.xml + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/src/main/python/.gitignore b/src/main/python/.gitignore index 6051f275aac..334a5b78963 100644 --- a/src/main/python/.gitignore +++ b/src/main/python/.gitignore @@ -52,3 +52,8 @@ systemds/SystemDS.jar # tutorial systemds/examples/tutorials/* + +# test coverage +.coverage +.coverage.xml +