ci(actions): add python CI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user