Skip to content

feat: add a base version of the translation pipeline #18

feat: add a base version of the translation pipeline

feat: add a base version of the translation pipeline #18

Workflow file for this run

name: Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
PYTHON_VERSION: "3.13.11"
jobs:
lint-and-typecheck:
name: Linting and Type Checking
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: uv sync --locked --all-extras --dev
- name: Run ruff checks
run: uv run ruff check
- name: Run mypy for type checking
run: uv run mypy
unit-tests:
name: Unit Tests
needs: lint-and-typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: uv sync --locked --all-extras --dev
- name: Run unit tests
run: uv run pytest -v