44 lines
870 B
YAML
44 lines
870 B
YAML
# SPDX-FileCopyrightText: 2025 Alexander Kalinovsky <a@k8y.ru>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version:
|
|
- "3.13"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
uv sync --all-extras --dev
|
|
- name: Ruff (lint + format check)
|
|
run: |
|
|
uv run ruff check .
|
|
uv run ruff format --check
|
|
- name: MyPy
|
|
run: |
|
|
uv run mypy .
|
|
- name: Pytest
|
|
run: |
|
|
uv run pytest
|
|
|