summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2022-09-28 00:06:23 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2022-09-28 00:06:23 +0200
commit2aede292da05127e4354cf092e49fdc972e03350 (patch)
tree0e3151c9db2cb5942d531e2211592f6235078cc7 /.github/workflows
parentbadd7064e202635b8a94d5603b31a37ca7d58d6c (diff)
downloadpython-setuptools-git-2aede292da05127e4354cf092e49fdc972e03350.tar.gz
Make the `check` job a central gate in the CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7b4669ac..14e9636b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -74,7 +74,9 @@ jobs:
if: always()
needs:
+ - integration-test
- test
+ - test_cygwin
runs-on: ubuntu-latest
@@ -82,6 +84,23 @@ jobs:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
+ allowed-skips: >-
+ ${{
+ (
+ (
+ github.event_name == 'pull_request' ||
+ (
+ github.event_name == 'push' &&
+ github.ref == format(
+ 'refs/heads/{0}',
+ github.event.repository.default_branch
+ )
+ )
+ )
+ )
+ && 'integration-test'
+ || ''
+ }}
jobs: ${{ toJSON(needs) }}
test_cygwin:
@@ -143,8 +162,6 @@ jobs:
release:
needs:
- check
- - test_cygwin
- - integration-test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 75