Skip to content

Commit 8a4f85d

Browse files
committed
Update test runners for new Pythons and github actions
1 parent 43c1cb2 commit 8a4f85d

2 files changed

Lines changed: 29 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
python-version: ["3.12"]
12+
python-version: ["3.13"]
1313

1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies
@@ -39,17 +39,17 @@ jobs:
3939
4040
legacy:
4141
name: "Older Python 3 Releases"
42-
runs-on: ubuntu-20.04
42+
runs-on: ubuntu-24.04
4343

4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.13"]
47+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
4848

4949
steps:
5050
- uses: actions/checkout@v4
5151
- name: Set up Python ${{ matrix.python-version }}
52-
uses: actions/setup-python@v5
52+
uses: actions/setup-python@v6
5353
with:
5454
python-version: ${{ matrix.python-version }}
5555
allow-prereleases: true
@@ -71,12 +71,28 @@ jobs:
7171
7272
antiquity:
7373
name: "Python 2.7"
74-
runs-on: ubuntu-20.04
75-
container:
76-
image: python:2.7.18-buster
7774

75+
# runs-on: ubuntu-20.04
76+
# container:
77+
# image: python:2.7.18-buster
78+
#
79+
80+
runs-on: ubuntu-22.04
7881
steps:
7982
- uses: actions/checkout@v4
83+
84+
- name: Install Python 2.7
85+
run: |
86+
sudo apt-get update
87+
sudo apt-get install -y python2
88+
python2 --version
89+
90+
- name: Install pip for Python 2.7
91+
run: |
92+
curl -sS https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
93+
sudo python2 get-pip.py
94+
pip2 --version
95+
8096
- name: Install dependencies
8197
run: |
8298
apt-get update && apt-get install sudo cmake gawk rsync -y

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ PYTHON310=python3.10
2020
PYTHON311=python3.11
2121
PYTHON312=python3.12
2222
PYTHON313=python3.13
23+
PYTHON314=python3.14
2324
PYTHON2=/usr/bin/python2
2425
PYTHON3=/usr/bin/python3
2526
PYTHON=${PYTHON3}
@@ -87,7 +88,8 @@ test_lazy: .stamp-tzinfo
8788
&& ${PYTHON39} test_lazy.py ${TESTARGS} \
8889
&& ${PYTHON310} test_lazy.py ${TESTARGS} \
8990
&& ${PYTHON311} test_lazy.py ${TESTARGS} \
90-
&& ${PYTHON312} test_lazy.py ${TESTARGS}
91+
&& ${PYTHON312} test_lazy.py ${TESTARGS} \
92+
&& ${PYTHON313} test_lazy.py ${TESTARGS}
9193

9294
test_tzinfo: .stamp-tzinfo
9395
cd build/dist/pytz/tests \
@@ -106,7 +108,8 @@ test_tzinfo: .stamp-tzinfo
106108
&& ${PYTHON39} test_tzinfo.py ${TESTARGS} \
107109
&& ${PYTHON310} test_tzinfo.py ${TESTARGS} \
108110
&& ${PYTHON311} test_tzinfo.py ${TESTARGS} \
109-
&& ${PYTHON312} test_tzinfo.py ${TESTARGS}
111+
&& ${PYTHON312} test_tzinfo.py ${TESTARGS} \
112+
&& ${PYTHON313} test_tzinfo.py ${TESTARGS}
110113

111114
test_docs: .stamp-tzinfo
112115
cd build/dist/pytz/tests \

0 commit comments

Comments
 (0)