Skip to content

Commit

Permalink
test: modernize some workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jul 9, 2023
1 parent 8d6c103 commit f829489
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
# week, Sundays at 6:00 UTC.
- cron: "0 6 * * 0"

permissions:
contents: read

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
Expand All @@ -26,15 +29,15 @@ env:

jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
name: "${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
- ubuntu
- macos
- windows
python-version:
# When changing this list, be sure to check the [gh-actions] list in
# tox.ini so that tox will run properly.
Expand All @@ -46,12 +49,13 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"

- name: "Set up Python"
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true

- name: "Install dependencies"
run: |
Expand Down

0 comments on commit f829489

Please sign in to comment.