name: Python

on: [push, pull_request]

env:
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
  test:
    name: Python Tests
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v5
    - uses: astral-sh/setup-uv@v6
    - name: Run ruff lint
      working-directory: PythonScripts
      run: uv run ruff check audit_translations/
    - name: Run ruff format check
      working-directory: PythonScripts
      run: uv run ruff format --check audit_translations/
    - name: Run tests
      working-directory: PythonScripts
      run: uv run pytest
