Skip to content

Update actions/setup-python action to v6 #1354

Update actions/setup-python action to v6

Update actions/setup-python action to v6 #1354

Workflow file for this run

name: Check Tekst-API code style
on:
push:
branches:
- main
pull_request:
branches:
- main
# paths:
# - "Tekst-API/**"
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Tekst-API
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.2"
enable-cache: true
- name: Install Python
uses: actions/setup-python@v6
with:
python-version-file: "./Tekst-API/pyproject.toml"
- name: Install dependencies
run: uv sync
- name: Cancel on setup error
if: failure()
uses: andymckay/cancel-action@0.5
- name: Lint code base
if: always()
run: uv run ruff check . --extend-select N
- name: Check code formatting
if: always()
run: uv run ruff format . --check