Skip to content

Commit 3dd09e1

Browse files
committed
ci: update Python and urllib3 version support across workflows and documentation
1 parent d5dd9b0 commit 3dd09e1

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,31 @@ on:
66

77
jobs:
88
deploy:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python: [3.7, 3.8, 3.9, '3.10']
12+
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
13+
urllib3-line: ["lt2", "ge2"]
14+
exclude:
15+
- python-version: "3.7"
16+
urllib3-line: "ge2"
17+
- python-version: "3.8"
18+
urllib3-line: "ge2"
1319
steps:
1420
- uses: actions/checkout@v1
1521
- name: Set up Python
1622
uses: actions/setup-python@v1
1723
with:
1824
python-version: ${{ matrix.python }}
25+
- name: Install deps
26+
run: |
27+
pip install -r requirements/requirements.txt
28+
if [ "${{ matrix.urllib3-line }}" = "lt2" ]; then
29+
pip install "urllib3<2"
30+
else
31+
pip install "urllib3!=2.0.0,<3"
32+
fi
33+
pip install -e .
1934
- name: Install Tox and any other packages
2035
run: |
2136
python -m pip install --upgrade pip

.github/workflows/test.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,31 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
strategy:
99
matrix:
1010
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
11+
urllib3-line: ["lt2", "ge2"]
12+
exclude:
13+
- python-version: "3.7"
14+
urllib3-line: "ge2"
15+
- python-version: "3.8"
16+
urllib3-line: "ge2"
1117
steps:
1218
- uses: actions/checkout@v1
1319
- name: Setup Python
1420
uses: actions/setup-python@v1
1521
with:
1622
python-version: ${{ matrix.python }}
23+
- name: Install deps
24+
run: |
25+
pip install -r requirements/requirements.txt
26+
if [ "${{ matrix.urllib3-line }}" = "lt2" ]; then
27+
pip install "urllib3<2"
28+
else
29+
pip install "urllib3!=2.0.0,<3"
30+
fi
31+
pip install -e .
1732
- name: Install Tox and any other packages
1833
run: pip install -r requirements/test.txt
1934
- name: Run Tox

0 commit comments

Comments
 (0)