Migrate to latest action versions. Drop v3.7 from CI and add 3.12

Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
This commit is contained in:
Yurii Serhiichuk 2024-05-26 20:38:40 +02:00
parent 45637d92ba
commit f901469d68
2 changed files with 10 additions and 9 deletions

View File

@ -7,9 +7,9 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
cache: 'pip' cache: 'pip'
@ -22,13 +22,13 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11'] python: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
cache: 'pip' cache: 'pip'

View File

@ -12,15 +12,16 @@ jobs:
name: Build source distribution name: Build source distribution
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Build SDist and wheel - name: Build SDist and wheel
run: pipx run build run: pipx run build
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: artifact
path: dist/* path: dist/*
- name: Check metadata - name: Check metadata
@ -30,7 +31,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
needs: [ build_dist ] needs: [ build_dist ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
@ -40,7 +41,7 @@ jobs:
cache: 'pip' cache: 'pip'
- name: Install build dependencies - name: Install build dependencies
run: pip install -U setuptools wheel build run: pip install -U setuptools wheel build
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
# unpacks default artifact into dist/ # unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir # if `name: artifact` is omitted, the action will create extra parent dir