diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-11-29 07:50:24 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-11-29 07:50:24 -0500 |
commit | 209ee3438d2169a0ea89ff32efd295aa1edf316e (patch) | |
tree | 6678e04d0771bd6208994626c02f3a7279b2ff1b | |
parent | c27e0a97980ac5c0fb2cba0812b429a575227104 (diff) | |
download | python-coveragepy-git-209ee3438d2169a0ea89ff32efd295aa1edf316e.tar.gz |
Small tweaks to GHA syntax
-rw-r--r-- | .github/workflows/testsuite.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index c94f4e5f..81db41dd 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -18,7 +18,14 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy3"] + python-version: + - "2.7" + - "3.5" + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "pypy3" exclude: # Windows PyPy doesn't seem to work? - os: windows-latest @@ -46,14 +53,12 @@ jobs: python -m pip install -c requirements/pins.pip tox-gh-actions - name: "Run tox for ${{ matrix.python-version }}" - shell: bash continue-on-error: true id: tox1 run: | python -m tox - name: "Retry tox for ${{ matrix.python-version }}" - shell: bash id: tox2 if: steps.tox1.outcome == 'failure' run: | @@ -63,8 +68,6 @@ jobs: shell: bash if: always() run: | - if ${{ steps.tox1.outcome == 'success' || steps.tox2.outcome == 'success' }}; then - echo success - else + if ${{ steps.tox1.outcome != 'success' && steps.tox2.outcome != 'success' }}; then exit 1 fi |