Skip to content

Support Python 3.12 & Gotify 2.4.0 #4

Support Python 3.12 & Gotify 2.4.0

Support Python 3.12 & Gotify 2.4.0 #4

Workflow file for this run

name: CI
on: [push, pull_request, workflow_call]
jobs:
check-format:
name: Check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s check_format
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s lint
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s mypy
tests:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: pip
- run: pip install nox
- run: nox --no-venv -s test-${{ matrix.python_version }}
- name: Upload coverage to Codecov
if: matrix.python_version == '3.12'
uses: codecov/codecov-action@v2