Skip to content

Configure linting and lint the codebase, drop Python 3.9, enable tests on Windows #34

Configure linting and lint the codebase, drop Python 3.9, enable tests on Windows

Configure linting and lint the codebase, drop Python 3.9, enable tests on Windows #34

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Run tests
permissions:
id-token: write
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v5
- name: Install Python tools
uses: BrandonLWhite/[email protected]
- name: Setup Python with poetry caching
# poetry cache requires poetry to already be installed, weirdly
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Test
run: |-
poetry install
poe test-with-coverage
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload code coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
flags: ${{ matrix.platform}}_python${{ matrix.python-version }}
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}