Skip to content

Use uv, ruff and ty #378

Use uv, ruff and ty

Use uv, ruff and ty #378

Workflow file for this run

# SPDX-FileCopyrightText: 2020-2026 Sébastien Helleu <flashcode@flashtux.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: CI
on:
- push
- pull_request
jobs:
checks:
env:
POEXAM_VERSION: "0.1.0"
strategy:
matrix:
os:
- ubuntu-26.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Install gettext
run: sudo apt-get install gettext
- name: Cache poexam
id: cache-poexam
uses: actions/cache@v6
with:
path: ~/.cargo/bin/poexam
key: poexam-${{ env.POEXAM_VERSION }}-${{ runner.os }}
- name: Install poexam
if: steps.cache-poexam.outputs.cache-hit != 'true'
run: cargo install --version "$POEXAM_VERSION" poexam
- name: Check gettext files
run: make gettext
build:
strategy:
matrix:
os:
- ubuntu-26.04
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v9
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Lint
run: make lint