Skip to content

Set Python 3.13 as minimum #489

Set Python 3.13 as minimum

Set Python 3.13 as minimum #489

Workflow file for this run

name: Actions
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.2
- name: Set up Python 3.13
uses: actions/setup-python@v5.3.0
with:
python-version: "3.13"
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Lint/test with pre-commit
run: poetry run pre-commit run --all-files
test:
name: Test with Python ${{ matrix.python-version }}
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13"
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Build
run: poetry build
coverage:
name: Coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Set up Python 3.13
uses: actions/setup-python@v5.3.0
with:
python-version: "3.13"
- name: Install poetry
run: pipx install poetry
- name: install dependencies
run: poetry install
- name: Upload coverage to Codecov
run: |
poetry run pytest --cov --cov-report=xml
curl -sfSL https://codecov.io/bash | bash -