Skip to content

Test on Python 3.12, set minimum to 3.10 #48

Test on Python 3.12, set minimum to 3.10

Test on Python 3.12, set minimum to 3.10 #48

Workflow file for this run

name: Build/Test CI
on: [push, pull_request]
jobs:
build-and-test:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test
run: |
pip install nox
nox -s test test-cli --python ${{ matrix.python-version }}
format:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Format
run: |
pip install nox
nox -s format