summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-06-12 16:17:39 -0400
committerJason R. Coombs <jaraco@jaraco.com>2022-06-12 16:35:53 -0400
commit66ad7781db135ebd7965716dd1a6fcd8ef503f9a (patch)
treec0a7827e4ad30ecd21d0f7506a0b17a54ecdbefb /.github/workflows
parent135de83bc57762a6104abd9cec9011c7d7ed5954 (diff)
parente719f86c138a750f0c4599cd01cb8067b1ca95c8 (diff)
downloadpython-setuptools-git-66ad7781db135ebd7965716dd1a6fcd8ef503f9a.tar.gz
Merge https://github.com/jaraco/skeleton
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml36
1 files changed, 27 insertions, 9 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 092c0dcc..41349800 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -16,11 +16,12 @@ jobs:
distutils:
- local
python:
+ # Build on pre-releases until stable, then stable releases.
+ # actions/setup-python#213
+ - ~3.7.0-0
+ - ~3.10.0-0
+ - ~3.11.0-0
- pypy-3.7
- - 3.7
- - 3.8
- - 3.9
- - "3.10"
platform:
- ubuntu-latest
- macos-latest
@@ -34,9 +35,9 @@ jobs:
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
timeout-minutes: 75
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v3
@@ -66,6 +67,20 @@ jobs:
${{ runner.os }},
${{ matrix.python }}
+ check: # This job does nothing and is only used for the branch protection
+ if: always()
+
+ needs:
+ - test
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Decide whether the needed jobs succeeded or failed
+ uses: re-actors/alls-green@release/v1
+ with:
+ jobs: ${{ toJSON(needs) }}
+
test_cygwin:
strategy:
matrix:
@@ -121,14 +136,17 @@ jobs:
run: tox -e integration
release:
- needs: [test, test_cygwin, integration-test]
+ needs:
+ - check
+ - test_cygwin
+ - integration-test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 75
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install tox