All checks were successful
Code check / Check code (push) Successful in 1m59s
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
43 lines
918 B
YAML
43 lines
918 B
YAML
name: Code check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- "data/**"
|
|
- "*.md"
|
|
- "dev-scripts/**"
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- "data/**"
|
|
- "*.md"
|
|
- "dev-scripts/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
pre-commit:
|
|
name: Check code
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: https://gitea.com/actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install uv
|
|
uses: https://github.com/astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Sync dependencies into venv
|
|
run: uv sync --all-extras --dev
|
|
|
|
- name: Activate .venv & run pre-commit
|
|
shell: bash
|
|
run: |
|
|
source .venv/bin/activate
|
|
pre-commit run --show-diff-on-failure --color=always --all-files
|