mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Run linters
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
env:
|
|
UV_NO_SOURCES: "1"
|
|
PYTHONPATH: ${{ github.workspace }}/abx-pkg:${{ 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 abx-pkg
|
|
run: git clone --depth=1 https://github.com/ArchiveBox/abx-pkg.git abx-pkg
|
|
|
|
- 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: true
|
|
|
|
- name: Install dependencies with uv
|
|
run: |
|
|
uv sync --all-extras --all-groups --no-sources --no-cache
|
|
uv pip install -e ./abx-pkg -e ./abx-plugins[dev] -e ./abx-dl
|
|
|
|
- name: Run prek
|
|
run: uv run --no-sync --no-sources prek run --all-files
|