Skip to content

Commit

Permalink
Add a test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Aug 24, 2024
1 parent 142c1d1 commit bcc7454
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
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

0 comments on commit bcc7454

Please sign in to comment.