From ddf74090dd764eb2bbec206e099634f32f73c7d5 Mon Sep 17 00:00:00 2001 From: Mathis Lacombe <81530082+Mathos34@users.noreply.github.com> Date: Tue, 2 Jun 2026 16:27:50 +0200 Subject: [PATCH] ci: add lint + unit test workflow Runs on push to main and on every PR. Installs only what the unit test path needs: ruff, pytest, pydantic, faker. The transformers backbone and torch are NOT installed in CI: they are needed by train.py / scripts/demo.py but the current test suite exercises only the verbatim normalize + verify logic and the synthetic generator. ruff check . + pytest -q tests/, ubuntu-latest, Python 3.11, pip cache. 10-minute timeout (more than enough for the current ~1 s test run). --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a664c40 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + lint-and-test: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ruff pytest + pip install pydantic faker + + - name: Ruff (lint) + run: ruff check . + + - name: Pytest (unit tests) + run: pytest -q tests/