Skip to content

Commit 3bf1908

Browse files
committedJan 27, 2024·
Don't bother pinning OS images for Github Actions
Fix #1612 The hassle of updating these pins (both for us and our users, most copy our documentation) seems to outweigh the benefit of the pin. The truth is that they're not really pins anyway, Github update them all the time, and they don't work for historical repeatability because old images are retired all the time.
1 parent e250df5 commit 3bf1908

8 files changed

+10
-10
lines changed
 

‎.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
runs-on: ${{ matrix.os }}
3939
strategy:
4040
matrix:
41-
os: [ubuntu-20.04, windows-latest, macos-11]
41+
os: [ubuntu-latest, windows-latest, macos-latest]
4242
python_version: ['3.12']
4343
include:
44-
- os: ubuntu-22.04
44+
- os: ubuntu-latest
4545
python_version: '3.8'
4646
timeout-minutes: 180
4747
steps:

‎.github/workflows/update-dependencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
update-dependencies:
1919
name: Update dependencies
2020
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ${{ matrix.os }}
8989
strategy:
9090
matrix:
91-
os: [ubuntu-20.04, windows-2019, macOS-11]
91+
os: [ubuntu-latest, windows-latest, macOS-latest]
9292

9393
steps:
9494
- uses: actions/checkout@v4

‎docs/setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
178178
runs-on: ${{ matrix.os }}
179179
strategy:
180180
matrix:
181-
os: [ubuntu-20.04, windows-2019, macos-11]
181+
os: [ubuntu-latest, windows-latest, macos-latest]
182182

183183
steps:
184184
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
211211
runs-on: ${{ matrix.os }}
212212
strategy:
213213
matrix:
214-
os: [ubuntu-20.04, windows-2019, macos-11]
214+
os: [ubuntu-latest, windows-latest, macos-latest]
215215

216216
steps:
217217
- uses: actions/checkout@v4

‎examples/github-apple-silicon.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
build_wheels_macos:
77
name: Build wheels on macos-11
8-
runs-on: macos-11
8+
runs-on: macos-latest
99
steps:
1010
- uses: actions/checkout@v4
1111

‎examples/github-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-22.04, windows-2022, macos-11]
19+
os: [ubuntu-latest, windows-latest, macos-latest]
2020

2121
steps:
2222
- uses: actions/checkout@v4

‎examples/github-minimal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-20.04, windows-2019, macos-11]
11+
os: [ubuntu-latest, windows-latest, macos-latest]
1212

1313
steps:
1414
- uses: actions/checkout@v4

‎examples/github-with-qemu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-20.04, windows-2019, macos-11]
11+
os: [ubuntu-latest, windows-latest, macos-latest]
1212

1313
steps:
1414
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)
Please sign in to comment.