From 05374c7425bbe5ff11738c4699ca58346ce13c85 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 17 Nov 2020 08:22:06 +0100 Subject: [PATCH 1/3] Try to reduce the GHA usage by restricting the branches. --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bed4805..0207f75 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,9 @@ name: run tests on: push: + branches: [ master ] pull_request: + branches: [ master ] schedule: - cron: '0 12 * * 0' # run once a week on Sunday From c38f4593311dd6450b8c517d5dc11a78b53e94e1 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 17 Nov 2020 13:42:24 +0100 Subject: [PATCH 2/3] Fix index so coveralls is triggered for the coverage tox env. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0207f75..50856ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,7 +47,7 @@ jobs: - name: Test run: tox -e ${{ matrix.config[2] }} - name: Coverage - if: matrix.config[1] == 'coverage' + if: matrix.config[2] == 'coverage' run: coveralls env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b62ff648fb769e2b1310a655c0af1d80ca565b4c Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 17 Nov 2020 13:59:50 +0100 Subject: [PATCH 3/3] Coveralls seems to need the coverage plug-ins. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50856ca..f2bcc4c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,7 +43,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox coveralls + pip install tox coveralls coverage-python-version - name: Test run: tox -e ${{ matrix.config[2] }} - name: Coverage