Skip to content

chore: bump actions/checkout from 5.0.0 to 6.0.0 #506

chore: bump actions/checkout from 5.0.0 to 6.0.0

chore: bump actions/checkout from 5.0.0 to 6.0.0 #506

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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Install uv
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
- 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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Check commit message
run: |
git config --global --add safe.directory /__w/lightman-ai/lightman-ai
cz check --rev-range HEAD