From bf685107d88ed9e5cf186e31b9e830692db14bac Mon Sep 17 00:00:00 2001 From: ilia Date: Wed, 5 Aug 2026 19:16:03 -0400 Subject: [PATCH] ci: use python3 -m ruff/pytest with isolated ruff --- .gitea/workflows/ci.yml | 5 +++-- scripts/ci-python.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 scripts/ci-python.sh diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 217a448..93818a1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: pip install bandit pip-audit ruff --break-system-packages - name: Ruff lint - run: ruff check . + run: python3 -m ruff check . --isolated - name: Bandit (advisory) run: bandit -r . -q || true @@ -61,7 +61,8 @@ jobs: run: | if [ -d tests ] || ls test_*.py *_test.py 2>/dev/null; then pip install pytest --break-system-packages - PYTHONPATH=. pytest -q + export PYTHONPATH=. + python3 -m pytest -q else echo "No tests found — skip" fi diff --git a/scripts/ci-python.sh b/scripts/ci-python.sh new file mode 100755 index 0000000..7cc174f --- /dev/null +++ b/scripts/ci-python.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# Local / Gitea python-ci lane (ruff + pytest hard gates). +set -euo pipefail + +export PYTHONPATH=. + +python3 -m ruff check . --isolated +python3 -m pytest -q