Skip to content

More generic, installable #163

More generic, installable

More generic, installable #163

Workflow file for this run

name: Python checks
on:
push:
branches: [ main ]
paths-ignore:
- "**.md"
- ".devcontainer/**"
- ".github/**"
- "example_results/**"
- "example_input/**"
pull_request:
branches: [ main ]
paths-ignore:
- "**.md"
- ".devcontainer/**"
- ".github/**"
- "example_results/**"
- "example_input/**"
workflow_call:
jobs:
test_package:
name: Test ${{ matrix.os }} Python ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is x84 and macos-14-large is arm64
os: ["ubuntu-20.04", "windows-latest", "macos-13", "macos-14-large"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Lint with ruff
run: ruff check .
- name: Check formatting with ruff
run: ruff format . --check
- name: Run Pytest tests
run: python -m pytest