Skip to content

Commit

Permalink
Update GitHub Action workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 committed Oct 13, 2023
1 parent a3bebc1 commit 5f881fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -9,20 +9,19 @@ on:
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12-dev'
- '3.12'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/publish.yml
Expand Up @@ -8,31 +8,26 @@ on:
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12-dev'
- '3.12'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements/*.txt

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv wheel

Expand All @@ -52,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
needs: [tests]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit 5f881fa

Please sign in to comment.