Skip to content

#251 Add a feature flag for the terminal. #415

#251 Add a feature flag for the terminal.

#251 Add a feature flag for the terminal. #415

Workflow file for this run

name: Python checks
on:
push:
branches:
- main
- release/**
paths:
- backend/**
pull_request:
branches:
- main
- release/**
jobs:
python:
name: Python checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
- name: Install dependencies
run: |
cd ./backend
uv sync --all-extras --dev
- name: Check style with Ruff
continue-on-error: true
id: ruff
run: |
cd ./backend
uv run ruff check --output-format=github .
- name: Check type hints with mypy
continue-on-error: true
id: mypy
run: |
cd ./backend
uv run mypy --show-error-codes --check-untyped-defs --config-file ./pyproject.toml .
- name: Test with pytest
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
cd ./backend
uv run coverage run -m pytest -v --benchmark-skip -W ignore::ResourceWarning
- name: Check for failures
if: steps.ruff.outcome == 'failure' || steps.mypy.outcome == 'failure'
run: |
echo "One or more checks failed"
exit 1