Add .forgejo/workflows/test.yml
Some checks failed
Python Type Check and Lint / ci (push) Failing after 0s
Some checks failed
Python Type Check and Lint / ci (push) Failing after 0s
This commit is contained in:
parent
b678e844f6
commit
f0ebd85e16
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/test.yml
Normal file
34
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Python Type Check and Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
|
||||||
|
- name: "Set up Python"
|
||||||
|
run: uv python install
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync --all-groups
|
||||||
|
|
||||||
|
- name: Run Type Check (mypy)
|
||||||
|
run: uv run mypy .
|
||||||
|
|
||||||
|
- name: Run Lint & Format Check (ruff)
|
||||||
|
run: |
|
||||||
|
uv run ruff check .
|
||||||
|
uv run ruff format --check .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue