Skip to content

Fix compat for Python 3.9-3.11 #42

Fix compat for Python 3.9-3.11

Fix compat for Python 3.9-3.11 #42

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
id-token: write
jobs:
buildtest:
strategy:
matrix:
pyversion:
- "3.9"
- "3.10" # YAML trick: add "" especially between 3.10
- "3.11"
- "3.12"
- "3.13"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install libime
run: sudo apt install -y libime-bin
- name: Install Poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.pyversion }}
cache: "poetry"
- name: Install dependencies
run: |
poetry install
poetry env info
poetry show
- name: Test with pytest
run: make test
- name: Run pylint
run: make lint
- name: Test version mark
run: make test_version
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
use_oidc: true