From a08b9d57b7155c4629d892cb185e17af89981826 Mon Sep 17 00:00:00 2001 From: Mathis Lacombe <81530082+Mathos34@users.noreply.github.com> Date: Thu, 4 Jun 2026 20:41:58 +0200 Subject: [PATCH] ci: add lint + unit test workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..6874af6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + lint-and-test: + runs-on: ubuntu-latest + timeout-minutes: 15 + 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 torch --index-url https://download.pytorch.org/whl/cpu + pip install numpy + + - name: Ruff (lint) + run: ruff check . + + - name: Pytest (unit tests) + run: pytest -q tests/