Skip to content

[infra] Modernize dev environment to use uv, ruff, and ty #236

[infra] Modernize dev environment to use uv, ruff, and ty

[infra] Modernize dev environment to use uv, ruff, and ty #236

Workflow file for this run

name: pre-merge
on:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync --locked
- name: Ruff (format)
run: uv run ruff format --check
- name: Ruff (lint)
run: uv run ruff check
- name: ty (type check)
run: uv run ty check
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync --locked --python ${{ matrix.python-version }}
- name: Pytest
run: uv run --python ${{ matrix.python-version }} pytest -s --cov=py_trees tests/