Skip to content

nix-builder: remove some dead code in variant handling #2776

nix-builder: remove some dead code in variant handling

nix-builder: remove some dead code in variant handling #2776

Workflow file for this run

name: Lints
on:
push:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
env:
RUFF_VERSION: "0.15.10"
GRIFFE_VERSION: "1.15.0"
jobs:
lint:
name: Run lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run ruff check
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
with:
src: kernels
version: ${{ env.RUFF_VERSION }}
- name: Run ruff format check
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
with:
src: kernels
version: ${{ env.RUFF_VERSION }}
args: format --check
griffe:
name: Check API compatibility
runs-on: ubuntu-latest
env:
UV_PYTHON_PREFERENCE: only-managed
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install uv and set the python version
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: "3.12"
- name: Check for breaking changes
run: uvx griffe==${{ env.GRIFFE_VERSION }} check kernels --search kernels/src -a main
validate-dependencies:
name: Validate python_depends.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Validate python_depends.json is up-to-date
run: diff kernels-data/src/python_dependencies.json kernels/src/kernels/python_depends.json