Files
agentic_security/.github/workflows/pre-commit.yml
T
Alexander MyasoedovandClaude Fable 5.1 1f2413e2b0 fix: ci pre-commit poetry env
Install poetry before setup-python and enable the poetry cache so
setup-python activates the 3.14 interpreter. With virtualenvs.create=false
poetry otherwise installs into the runner's system Python 3.12 and fails
uninstalling Debian dist-packages.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bk6CFfaN3YJFZ6yztQja7D
2026-09-07 14:08:49 +03:00

29 lines
580 B
YAML

name: Pre-Commit Checks
env:
POETRY_VERSION: "2.4.1"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.14'
cache: "poetry"
- name: Install pre-commit
run: poetry install
- name: Run pre-commit
run: poetry run pre-commit run --all-files