From b8612995ee806d4ffb6c7d29d9fcb7b499427394 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Wed, 18 Nov 2020 07:56:26 +0100 Subject: Try to reduce the GHA usage by restricting the branches. (#9) * Fix index so coveralls is triggered for the coverage tox env. * Coveralls seems to need the coverage plug-ins. --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bed4805..f2bcc4c 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 @@ -41,11 +43,11 @@ 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 - if: matrix.config[1] == 'coverage' + if: matrix.config[2] == 'coverage' run: coveralls env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.1