ci(actions): add python CI

This commit is contained in:
2026-04-19 23:35:02 +02:00
parent 0daa532a02
commit 3a1f8bceec
+37
View File
@@ -0,0 +1,37 @@
name: Python CI
on: [push]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: astral-sh/ruff-action@v3
ruff-format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: astral-sh/ruff-action@v3
with:
args: "format --check --diff"
ty:
runs-on: ubuntu-latest
steps:
- run: python3 -m pip install uv
- uses: actions/checkout@v5
- run: python3 -m uv sync
- run: python3 -m uv run ty check --output-format github
coverage:
runs-on: ubuntu-latest
steps:
- run: python3 -m pip install uv
- uses: actions/checkout@v5
- run: python3 -m uv sync
- run: python3 -m uv run coverage run -m unittest -v
- run: python3 -m uv run coverage xml
- uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.xml