2024-10-25 13:43:50 +00:00
|
|
|
name: Pre-commit checks
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-commit:
|
|
|
|
name: Pre-commit
|
|
|
|
runs-on: docker
|
|
|
|
container: git.frostfs.info/truecloudlab/env:python-${{ matrix.py }}
|
2024-10-25 13:47:17 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
py:
|
|
|
|
- '3.11'
|
|
|
|
- '3.13'
|
|
|
|
env:
|
|
|
|
PIP_CACHE_DIR: /cache/pip
|
2024-10-25 13:43:50 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt install -y pre-commit
|
|
|
|
- name: Run pre-commit
|
|
|
|
run: pre-commit run --all-files --hook-stage manual --color=always
|