Skip to content

Commit f829489

Browse files
committed
test: modernize some workflow stuff
1 parent 8d6c103 commit f829489

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
# week, Sundays at 6:00 UTC.
1313
- cron: "0 6 * * 0"
1414

15+
permissions:
16+
contents: read
17+
1518
concurrency:
1619
group: "${{ github.workflow }}-${{ github.ref }}"
1720
cancel-in-progress: true
@@ -26,15 +29,15 @@ env:
2629

2730
jobs:
2831
tests:
29-
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
30-
runs-on: "${{ matrix.os }}"
32+
name: "${{ matrix.python-version }} on ${{ matrix.os }}"
33+
runs-on: "${{ matrix.os }}-latest"
3134

3235
strategy:
3336
matrix:
3437
os:
35-
- ubuntu-latest
36-
- macos-latest
37-
- windows-latest
38+
- ubuntu
39+
- macos
40+
- windows
3841
python-version:
3942
# When changing this list, be sure to check the [gh-actions] list in
4043
# tox.ini so that tox will run properly.
@@ -46,12 +49,13 @@ jobs:
4649

4750
steps:
4851
- name: "Check out the repo"
49-
uses: "actions/checkout@v2"
52+
uses: "actions/checkout@v3"
5053

5154
- name: "Set up Python"
52-
uses: "actions/setup-python@v2"
55+
uses: "actions/setup-python@v4"
5356
with:
5457
python-version: "${{ matrix.python-version }}"
58+
allow-prereleases: true
5559

5660
- name: "Install dependencies"
5761
run: |

0 commit comments

Comments
 (0)