From 65628240e05716629fdc90dd3ffe62a54e75fc6d Mon Sep 17 00:00:00 2001 From: Gabriel Pettier Date: Fri, 6 Dec 2019 01:00:51 +0100 Subject: [PATCH] activate coveralls again --- .github/workflows/push.yml | 26 +++++++++----------------- tests/__init__.py | 0 2 files changed, 9 insertions(+), 17 deletions(-) create mode 100644 tests/__init__.py diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b959aa5f..697c0382 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -72,27 +72,19 @@ jobs: if: matrix.os == 'windows-latest' run: | $env:PATH +=";$env:JAVA_HOME\jre\bin\server\;$env:JAVA_HOME\jre\bin\client\;$env:JAVA_HOME\bin\server\" - $env:CLASSPATH ="../build/test-classes;../build/classes" + $env:CLASSPATH ="./build/test-classes;./build/classes" ant all - cd tests - pytest -v + pytest --cov=jnius -v tests - name: test - if: matrix.os == 'ubuntu-latest' - run: | - ant all - cd tests - CLASSPATH=../build/test-classes:../build/classes pytest -v - - - name: test - if: matrix.os == 'macOs-latest' + if: matrix.os != 'windows-latest' run: | ant all - cd tests - CLASSPATH=../build/test-classes:../build/classes python -m pytest -v + CLASSPATH=./build/test-classes:./build/classes python -m pytest --cov=jnius -v tests -# - name: coveralls -# run: python -m coveralls -# env: -# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: coveralls + run: python -m coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_PARALLEL: true diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b