From f0ebd85e1662bdafebd7b518d7d989b9c2a661a4 Mon Sep 17 00:00:00 2001 From: imnyang Date: Thu, 28 May 2026 12:03:05 +0900 Subject: [PATCH] Add .forgejo/workflows/test.yml --- .forgejo/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..82af0a0 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -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 . \ No newline at end of file