Skip to content

chore: bump the patch-updates group with 3 updates #514

chore: bump the patch-updates group with 3 updates

chore: bump the patch-updates group with 3 updates #514

Workflow file for this run

# This workflow will check our code for having a proper format, as well as the commit message to meet the expected ones
name: Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'bump:')"
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
- name: Install the project
run: uv sync --locked --group lint --group test --all-extras --python 3.13
- name: Cache mypy cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.2.1
with:
path: .mypy_cache
key: mypy-${{ runner.os }}
restore-keys: |
mypy-${{ runner.os }}
- name: Lint
run: |
uv run ruff format --check src tests eval
uv run ruff check src tests eval
uv run mypy src tests eval
lint-commit:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'bump:')"
name: "Lint commit message"
container:
image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a
steps:
- name: Check out
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Check commit message
run: |
git config --global --add safe.directory /__w/lightman-ai/lightman-ai
cz check --rev-range HEAD