diff options
author | Michael Howitz <mh@gocept.com> | 2020-11-18 07:56:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 07:56:26 +0100 |
commit | b8612995ee806d4ffb6c7d29d9fcb7b499427394 (patch) | |
tree | 4000215d86a97490fea5515fceedca0d49c96cca | |
parent | 56581e9fde82e26db952a9eee0317891933b74d1 (diff) | |
download | zope-browser-b8612995ee806d4ffb6c7d29d9fcb7b499427394.tar.gz |
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.
-rw-r--r-- | .github/workflows/tests.yml | 6 |
1 files changed, 4 insertions, 2 deletions
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 }} |