chore: update python versions in CI (#251)

master
Caleb Hattingh 2024-04-24 14:01:32 +02:00 committed by GitHub
parent 41f72b2513
commit 7651d2b2cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -40,16 +40,21 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9] python-version: ["3.12"]
allow-prereleases: [false]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.12" python-version: "3.13"
allow-prereleases: true
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.11" python-version: "3.11"
allow-prereleases: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.10" python-version: "3.10"
allow-prereleases: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: 3.8 python-version: 3.8
allow-prereleases: false
runs-on: "${{ matrix.os }}" runs-on: "${{ matrix.os }}"
steps: steps:
- name: Harden Runner - name: Harden Runner
@ -72,6 +77,7 @@ jobs:
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # 5.1.0 - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # 5.1.0
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
allow-prereleases: ${{ matrix.allow-prereleases }}
- uses: dtolnay/rust-toolchain@bb45937a053e097f8591208d8e74c90db1873d07 - uses: dtolnay/rust-toolchain@bb45937a053e097f8591208d8e74c90db1873d07
with: with:

View File

@ -1,7 +1,7 @@
import nox import nox
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"]) @nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
def test(session): def test(session):
session.install("-rrequirements-dev.txt") session.install("-rrequirements-dev.txt")
session.install("-e", ".", "--no-build-isolation") session.install("-e", ".", "--no-build-isolation")