From 3f1b44de6f582fc5e52cf120ab50bec137db1b10 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Fri, 10 Apr 2020 21:41:32 +0200 Subject: [PATCH] Fixes coveralls.io on pull requests Coveralls.io now runs on pull requests as well. The report is automatically uploaded on coveralls.io however it needs to be accessed by copying the report URL to review it. Next up would be to have it commenting on the pull request to see on first sight if it increased or decreased. Also made a couple of adjustment to the workflow file to clarify between requirements building, Docker build/run and actual testing. --- .github/workflows/test_python.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index 7c1b581..5c7f10f 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -26,15 +26,16 @@ jobs: - name: Requirements run: | pip install -U coveralls setuptools tox>=2.0 - tox - - name: Build + - name: Tox + run: tox + - name: Docker build run: | docker build --tag=buildozer . - - name: Test + - name: Docker run run: | docker run buildozer --version - - name: coveralls - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - run: coveralls + - name: Coveralls env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_SERVICE_NAME: github + run: coveralls