Skip to content

ci: Include macOS and Windows in CI pipeline #47

ci: Include macOS and Windows in CI pipeline

ci: Include macOS and Windows in CI pipeline #47

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python tests
permissions:
contents: read
on:
push:
branches:
- "main"
- "dev"
- "feat/*"
pull_request:
branches:
- "main"
- "dev"
- "feat/*"
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
- "macos-13"
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry install --no-interaction --with dev --with test
- name: Test with ruff
run: |
poetry run ruff check
poetry run ruff format --check
- name: Test with pytest
run: |
poetry run pytest tests -vv