Skip to content

Commit 209ee34

Browse files
committed
Small tweaks to GHA syntax
1 parent c27e0a9 commit 209ee34

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/testsuite.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, macos-latest, windows-latest]
21-
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy3"]
21+
python-version:
22+
- "2.7"
23+
- "3.5"
24+
- "3.6"
25+
- "3.7"
26+
- "3.8"
27+
- "3.9"
28+
- "pypy3"
2229
exclude:
2330
# Windows PyPy doesn't seem to work?
2431
- os: windows-latest
@@ -46,14 +53,12 @@ jobs:
4653
python -m pip install -c requirements/pins.pip tox-gh-actions
4754
4855
- name: "Run tox for ${{ matrix.python-version }}"
49-
shell: bash
5056
continue-on-error: true
5157
id: tox1
5258
run: |
5359
python -m tox
5460
5561
- name: "Retry tox for ${{ matrix.python-version }}"
56-
shell: bash
5762
id: tox2
5863
if: steps.tox1.outcome == 'failure'
5964
run: |
@@ -63,8 +68,6 @@ jobs:
6368
shell: bash
6469
if: always()
6570
run: |
66-
if ${{ steps.tox1.outcome == 'success' || steps.tox2.outcome == 'success' }}; then
67-
echo success
68-
else
71+
if ${{ steps.tox1.outcome != 'success' && steps.tox2.outcome != 'success' }}; then
6972
exit 1
7073
fi

0 commit comments

Comments
 (0)