Skip to content

Commit

Permalink
ci: Add package testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Sep 18, 2024
1 parent e61734b commit 102b2fa
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test - Python

on:
push:
paths:
- 'pkg-py/*'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/py-test.yml'
pull_request:
paths:
- 'pkg-py/*'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/py-test.yml'

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v4

- name: πŸš€ Install uv
uses: astral-sh/setup-uv@v2

- name: 🐍 Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: πŸ“¦ Install the project
run: uv sync --no-dev --extra test

- name: πŸ§ͺ Check tests
run: make check-tests

- name: πŸ“ Check types
run: make check-types

- name: πŸ“ Check formatting
run: make check-format

0 comments on commit 102b2fa

Please sign in to comment.