Skip to content

Commit 10c7360

Browse files
committed
Use more recent runner images for GitHub Actions builds
1 parent 9c79389 commit 10c7360

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed

.github/workflows/all.yml

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ jobs:
1111

1212
# Test Code for recent Python releases
1313
test-code:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
python-version:
19-
- '3.6'
20-
- '3.7'
2119
- '3.8'
2220
- '3.9'
2321
- '3.10'
@@ -27,10 +25,10 @@ jobs:
2725
steps:
2826

2927
- name: Checkout repo
30-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
3129

3230
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5
3432
with:
3533
python-version: ${{ matrix.python-version }}
3634

@@ -45,39 +43,37 @@ jobs:
4543

4644
# Test Code for older Python3 releases
4745
test-code-older-py3:
48-
runs-on: ubuntu-20.04
46+
runs-on: ubuntu-24.04
4947
container:
5048
image: python:${{ matrix.python-version }}
5149
strategy:
5250
fail-fast: false
5351
matrix:
54-
python-version: ['3.5.10']
52+
python-version:
53+
- '3.5.10'
54+
- '3.6.15'
55+
- '3.7.17'
5556
steps:
5657

5758
- name: Checkout repo
58-
uses: actions/checkout@v3
59+
uses: actions/checkout@v4
5960

6061
- name: Install dependencies
6162
shell: bash
6263
run: |
63-
if [[ ${{ matrix.python-version }} == 3.3* ]]; then
64-
python -m pip install virtualenv==15.2.0
65-
python -m pip install pluggy==0.5.2
66-
python -m pip install tox==2.9.1
67-
fi
6864
python -m pip install tox
6965
7066
- name: Test Code
7167
shell: bash
7268
run: |
7369
version_abbr=$( echo ${{ matrix.python-version }} | sed -r 's/^([0-9])\.([0-9]).*/\1\2/' )
74-
envs=$( tox -listenvs | grep "py$version_abbr-" | tr '\n' ',' )
70+
envs=$( tox --listenvs | grep "py$version_abbr-" | tr '\n' ',' )
7571
tox -e $envs
7672
7773
7874
# Test Code for Python27
7975
test-code-older-py27:
80-
runs-on: ubuntu-20.04
76+
runs-on: ubuntu-24.04
8177
container:
8278
image: python:${{ matrix.python-version }}
8379
strategy:
@@ -88,7 +84,7 @@ jobs:
8884
steps:
8985

9086
- name: Checkout repo
91-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
9288

9389
- name: Install dependencies
9490
run: |
@@ -101,16 +97,16 @@ jobs:
10197

10298
# Test Docs
10399
test-docs:
104-
runs-on: ubuntu-20.04
100+
runs-on: ubuntu-24.04
105101
strategy:
106102
fail-fast: false
107103
steps:
108104

109105
- name: Checkout repo
110-
uses: actions/checkout@v3
106+
uses: actions/checkout@v4
111107

112108
- name: Set up Python ${{ matrix.python-version }}
113-
uses: actions/setup-python@v4
109+
uses: actions/setup-python@v5
114110
with:
115111
python-version: '3.11'
116112

@@ -126,18 +122,18 @@ jobs:
126122

127123
# Save Artifacts
128124
create-save-artifacts:
129-
runs-on: ubuntu-20.04
125+
runs-on: ubuntu-24.04
130126
needs: [test-code, test-code-older-py3, test-code-older-py27, test-docs]
131127
permissions:
132128
contents: write
133129

134130
steps:
135131

136132
- name: Checkout repo
137-
uses: actions/checkout@v3
133+
uses: actions/checkout@v4
138134

139135
- name: Set up Python
140-
uses: actions/setup-python@v4
136+
uses: actions/setup-python@v5
141137
with:
142138
python-version: '3.11'
143139

@@ -190,14 +186,14 @@ jobs:
190186

191187
# Deploy to GitHub Releases
192188
deploy-github-releases:
193-
runs-on: ubuntu-20.04
189+
runs-on: ubuntu-24.04
194190
needs: [create-save-artifacts]
195191
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
196192

197193
steps:
198194

199195
- name: Checkout repo
200-
uses: actions/checkout@v3
196+
uses: actions/checkout@v4
201197

202198
- name: Deploy to GitHub Releases
203199
shell: bash
@@ -220,17 +216,17 @@ jobs:
220216
221217
# Deploy to PyPi
222218
deploy-pypi:
223-
runs-on: ubuntu-20.04
219+
runs-on: ubuntu-24.04
224220
needs: [create-save-artifacts]
225221
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
226222

227223
steps:
228224

229225
- name: Checkout repo
230-
uses: actions/checkout@v3
226+
uses: actions/checkout@v4
231227

232228
- name: Set up Python
233-
uses: actions/setup-python@v4
229+
uses: actions/setup-python@v5
234230
with:
235231
python-version: '3.11'
236232

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
{py312,py313}-numpy{1_26_4,latest}
44
{py311}-numpy{1_23_0,1_26_4,latest}
5-
{py310}-numpy{1_21_0,1_26_4,latest}
5+
{py310}-numpy{1_21_1,1_26_4,latest}
66
{py39}-numpy{1_19_3,1_26_4,latest}
77
{py38}-numpy{1_17_3,latest}
88
{py37}-numpy{1_15_0,latest}
@@ -38,7 +38,7 @@ deps =
3838
numpy1_15_0: numpy==1.15.0
3939
numpy1_17_3: numpy==1.17.3
4040
numpy1_19_3: numpy==1.19.3
41-
numpy1_21_0: numpy==1.21.0
41+
numpy1_21_1: numpy==1.21.1
4242
numpy1_23_0: numpy==1.23.0
4343
numpy1_26_4: numpy==1.26.4
4444
numpylatest: numpy

0 commit comments

Comments
 (0)