From ba93a3a574736e32b506bd559180ee7188e881b4 Mon Sep 17 00:00:00 2001 From: shivv23 Date: Fri, 22 May 2026 15:32:07 +0530 Subject: [PATCH] ci: add backend unit tests to Tests workflow --- .github/workflows/integration-tests.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 7f9eeb8d..5b8f1d16 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -1,10 +1,31 @@ -name: Integration Tests +name: Tests on: pull_request: branches: [main] jobs: + backend-unit-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + working-directory: tensormap-backend + run: uv sync --frozen --extra dev + + - name: Run backend unit tests + working-directory: tensormap-backend + run: uv run pytest tests/ -v --tb=short + integration-test: runs-on: ubuntu-latest steps: