From 36eadc21302ac36ff64e8f2503ad9af8af2a7dc1 Mon Sep 17 00:00:00 2001 From: ahtlon Date: Sun, 9 Aug 2026 13:45:13 +0200 Subject: [PATCH] [actions] setup linter action --- .gitea/workflows/python.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/python.yml b/.gitea/workflows/python.yml index ed3fddd..1dc0aac 100644 --- a/.gitea/workflows/python.yml +++ b/.gitea/workflows/python.yml @@ -3,7 +3,7 @@ name: Test python action on: [push] jobs: - build: + test: runs-on: node-current steps: - uses: actions/checkout@v6 @@ -12,10 +12,31 @@ jobs: - run: | apt update - apt install libpcsclite1 libpcsclite-dev python3-dev -y + apt install libpcsclite-dev python3-dev -y - name: Install deps run: uv sync --locked --all-extras --dev - name: Run tests - run: uv run pytest test \ No newline at end of file + run: uv run pytest test + + lint: + runs-on: node-current + steps: + - uses: actions/checkout@v6 + - name: Set up UV + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 + + - run: | + apt update + apt install libpcsclite-dev python3-dev -y + + - name: Install deps + run: uv sync --locked --all-extras --dev + + - name: Run ruff check + run: uv run ruff check --output-format=github + continue-on-error: true + + - name: Run ruff format + run: uv run ruff format --diff