summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorIllia Volochii <illia.volochii@gmail.com>2023-02-01 11:49:23 +0200
committerGitHub <noreply@github.com>2023-02-01 10:49:23 +0100
commit70b851b73e42dd5fdfbce3aba79be26846c9edc1 (patch)
tree590f2f1531a014f557f866fc2338fc8eaba06335 /.github
parent5a90d06cfe389aeac612addaab7c917927ecb0a5 (diff)
downloadurllib3-70b851b73e42dd5fdfbce3aba79be26846c9edc1.tar.gz
Start using final CPython 3.11 and dev 3.12 in CI (#2760)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 6 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 15067965..4d9e9918 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,20 +31,18 @@ jobs:
python -m twine check dist/*
test:
- env:
- SETUPTOOLS_USE_DISTUTILS: stdlib
strategy:
fail-fast: false
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10"]
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
os:
- macos-11
- windows-latest
- ubuntu-20.04 # OpenSSL 1.1.1
- ubuntu-22.04 # OpenSSL 3.0
- experimental: [false]
nox-session: ['']
include:
+ - experimental: false
- python-version: "pypy-3.7"
os: ubuntu-latest
experimental: false
@@ -66,14 +64,8 @@ jobs:
os: ubuntu-20.04 # CPython 3.9.2 is not available for ubuntu-22.04.
experimental: false
nox-session: test-3.9
- - python-version: 3.11
- os: ubuntu-20.04
+ - python-version: "3.12-dev"
experimental: true
- nox-session: test-3.11
- - python-version: 3.11
- os: ubuntu-22.04
- experimental: true
- nox-session: test-3.11
exclude:
# Ubuntu 22.04 comes with OpenSSL 3.0, so only CPython 3.9+ is compatible with it
# https://github.com/python/cpython/issues/83001
@@ -81,6 +73,9 @@ jobs:
os: ubuntu-22.04
- python-version: "3.8"
os: ubuntu-22.04
+ # Testing with non-final CPython on macOS is too slow for CI.
+ - python-version: "3.12-dev"
+ os: macos-11
runs-on: ${{ matrix.os }}
name: ${{ fromJson('{"macos-11":"macOS","windows-latest":"Windows","ubuntu-latest":"Ubuntu","ubuntu-20.04":"Ubuntu 20.04 (OpenSSL 1.1.1)","ubuntu-22.04":"Ubuntu 22.04 (OpenSSL 3.0)"}')[matrix.os] }} ${{ matrix.python-version }} ${{ matrix.nox-session}}
@@ -95,13 +90,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- # Use deadsnakes for development versions
- - if: endsWith(matrix.python-version, '-dev')
- name: "Setup Python ${{ matrix.python-version }}"
- uses: deadsnakes/action@e3117c2981fd8afe4af79f3e1be80066c82b70f5
- with:
- python-version: ${{ matrix.python-version }}
-
# Setup Python 3.x to run nox on behalf of Python 2.7
- if: matrix.python-version == '2.7'
name: "Setup Python 3.x"