Files
gatekeeper/.gitea/workflows/python.yml
ahtlon 36eadc2130
Some checks failed
Test python action / test (push) Successful in 31s
Test python action / lint (push) Failing after 21s
[actions] setup linter action
2026-08-09 13:45:13 +02:00

43 lines
1006 B
YAML

name: Test python action
on: [push]
jobs:
test:
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 tests
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