Skip to content

Drop Python 3.9, update for Python 3.14 (#178) #366

Drop Python 3.9, update for Python 3.14 (#178)

Drop Python 3.9, update for Python 3.14 (#178) #366

Workflow file for this run

name: Python tests
on:
push:
branches: [ main ]
paths:
- 'pyproject.toml'
- 'poetry.lock'
- '**.py'
- '.github/workflows/python-tests.yml'
pull_request:
branches: [ main ]
paths:
- 'pyproject.toml'
- 'poetry.lock'
- '**.py'
- '.github/workflows/python-tests.yml'
jobs:
test:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
cache-dependency-path: poetry.lock
- name: Install dependencies
run: poetry install --without docs
- name: Lint with ruff
run: poetry run ruff check . --statistics
- name: Test with pytest
run: poetry run pytest --cov=./
- name: Upload coverage data to coveralls.io
continue-on-error: true
run: |
pipx run coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Install coveralls
run: pip3 install --upgrade coveralls
- name: Finished
continue-on-error: true
run: coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}