Skip to content

Add a test workflow

Add a test workflow #4

Workflow file for this run

---
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: eifinger/[email protected]
id: setup-rye
with:
version: "0.39.0"
- name: Run formatting check
run: rye fmt --check
- name: Run linters
run: rye lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: eifinger/[email protected]
- name: Install Python ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}
- name: Run tests
run: rye test