Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions workflow-templates/python-uv-ruff-pytest.properties.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
{
"name": "Python CI (uv + ruff + pytest)",
"description": "Lint, format-check, type-check, and test a uv-managed Python package with ruff, ty, and pytest, matching the pattern used across RISE, tHMM, DDMC, and parafac2.",
"categories": [
"Python"
]
}
25 changes: 25 additions & 0 deletions workflow-templates/python-uv-ruff-pytest.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
name: Test

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Lint with ruff
run: uv run ruff check .
- name: Check formatting with ruff
run: uv run ruff format --check .
- name: Type check with ty
run: uv run ty check
- name: Test with pytest
run: uv run pytest --cov