mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Run linters
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
UV_NO_SOURCES: "1"
|
|
PYTHONPATH: ${{ github.workspace }}/abxpkg:${{ github.workspace }}/abx-plugins:${{ github.workspace }}/abx-dl
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 1
|
|
|
|
- name: Clone abxpkg
|
|
run: git clone --depth=1 https://github.com/ArchiveBox/abxpkg.git abxpkg
|
|
|
|
- name: Clone abx-plugins
|
|
run: git clone --depth=1 https://github.com/ArchiveBox/abx-plugins.git abx-plugins
|
|
|
|
- name: Clone abx-dl
|
|
run: git clone --depth=1 https://github.com/ArchiveBox/abx-dl.git abx-dl
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
architecture: x64
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: false
|
|
|
|
- name: Install dependencies with uv
|
|
run: |
|
|
uv venv
|
|
uv pip install --all-groups -e ./abxpkg -e ./abx-plugins -e ./abx-dl -e ".[sonic,debug]"
|
|
|
|
- name: Run prek
|
|
run: uv run --no-sync --no-sources prek run --all-files
|