Skip to content

docs: self-hosting GLiNER locally #552

docs: self-hosting GLiNER locally

docs: self-hosting GLiNER locally #552

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
# Telemetry is opt-out at runtime; in CI we never want to emit.
NEMO_TELEMETRY_ENABLED: "false"
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
# Required to use the reusable action
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: ./.github/actions/setup-python-env
with:
fetch-depth: "0"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group dev
- name: Run tests with coverage
run: make coverage
lint:
name: Lint and Format Check
runs-on: ubuntu-latest
steps:
# Required to use the reusable action
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: ./.github/actions/setup-python-env
with:
fetch-depth: "0"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group dev
- name: Run formatting check
run: make format-check
- name: Check copyright headers
run: make copyright-check
- name: Check uv.lock is up to date
run: make lock-check
typecheck:
name: Type Check (advisory)
runs-on: ubuntu-latest
continue-on-error: true
steps:
# Required to use the reusable action
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: ./.github/actions/setup-python-env
with:
fetch-depth: "0"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group dev
- name: Run type checks
run: uv run tools/codestyle/typecheck.sh || true