Skip to content

ci: Build image for arm64 and amd64 architechtures (#39) #91

ci: Build image for arm64 and amd64 architechtures (#39)

ci: Build image for arm64 and amd64 architechtures (#39) #91

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@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install the project
run: uv sync --locked --extra lint --extra test
- 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"
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install commitizen
run: |
python -m pip install --upgrade pip
python -m pip install commitizen
- name: Check commit message
run: cz check --rev-range HEAD