mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
38 lines
895 B
YAML
38 lines
895 B
YAML
name: Run linters
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
UV_NO_SOURCES: "1"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 1
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
|
with:
|
|
python-version: "3.13"
|
|
architecture: x64
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
|
|
with:
|
|
version: "0.11.3"
|
|
enable-cache: false
|
|
|
|
- name: Verify checked dependency lock
|
|
run: uv lock --check
|
|
|
|
- name: Install dependencies with uv
|
|
run: uv sync --locked --dev --extra sonic --extra debug
|
|
|
|
- name: Run prek
|
|
run: uv run --no-sync --no-sources prek run --all-files
|