Skip to content

Commit 0e93907

Browse files
authored
Stabilize CI check names (#185)
1 parent 3ae8a98 commit 0e93907

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,40 @@ jobs:
2424
- '**/*requirements*.txt'
2525
- '**/setup.cfg'
2626
- setup.py
27-
main:
27+
main-real:
2828
needs: [changes]
2929
if: needs.changes.outputs.project_files == 'true'
3030
uses: asottile/workflows/.github/workflows/tox.yml@adfec6a1ccb5d6b189aa153676d4f0743afa21c1 # v1.11.0
3131
with:
3232
env: '["py312", "py313", "py314", "pypy7.3.20"]' # https://github.com/actions/runner-images/blob/4847d9e554d1ad62acec5c5bddfc6175fe1bef4e/images/ubuntu/Ubuntu2204-Readme.md#pypy
33-
main-win:
33+
main:
34+
needs: [changes, main-real]
35+
if: always()
36+
runs-on: ubuntu-latest
37+
steps:
38+
- run: |
39+
if [ "${{ needs.changes.outputs.project_files }}" != "true" ]; then
40+
exit 0
41+
fi
42+
if [ "${{ needs.main-real.result }}" != "success" ]; then
43+
exit 1
44+
fi
45+
main-win-real:
3446
needs: [changes]
3547
if: needs.changes.outputs.project_files == 'true'
3648
uses: asottile/workflows/.github/workflows/tox.yml@adfec6a1ccb5d6b189aa153676d4f0743afa21c1 # v1.11.0
3749
with:
3850
env: '["py312"]'
3951
os: windows-latest
52+
main-win:
53+
needs: [changes, main-win-real]
54+
if: always()
55+
runs-on: ubuntu-latest
56+
steps:
57+
- run: |
58+
if [ "${{ needs.changes.outputs.project_files }}" != "true" ]; then
59+
exit 0
60+
fi
61+
if [ "${{ needs.main-win-real.result }}" != "success" ]; then
62+
exit 1
63+
fi

0 commit comments

Comments
 (0)