Skip to content

Python package

Python package #157

name: Python package
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
build:
strategy:
matrix:
python-version: [3.9, 3.13] # oldest and most recent version supported
runs-on: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make install-deps-dev
- name: Format with black
run: |
make format-check
- name: Lint with flake8
run: |
make lint
- name: Test with pytest
run: |
make test