From db5ab5806d46a539d542d39ba2b57810f2757f6e Mon Sep 17 00:00:00 2001 From: oheyek Date: Fri, 2 Jan 2026 15:56:54 +0100 Subject: [PATCH 1/2] feat: add CI/CD unit tests --- .github/workflows/tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..4504b38 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + pull_request: + branches: [dev] + workflow_call: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - name: Install UV + uses: astral-sh/setup-uv@v2 + with: + enable-cache: true + + - name: Install dependencies & test tools + run: | + uv run pip install -r requirements.txt + uv run pip install pytest pytest-cov + + - name: Run tests with coverage + run: uv run pytest src/tests/ -v --tb=short --cov=src --cov-report=term-missing From e31b9aef674f9102808ce0588053f8a0818726fc Mon Sep 17 00:00:00 2001 From: oheyek Date: Fri, 2 Jan 2026 15:58:52 +0100 Subject: [PATCH 2/2] fix: remove pytest-cov --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4504b38..309921e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies & test tools run: | uv run pip install -r requirements.txt - uv run pip install pytest pytest-cov + uv run pip install pytest - - name: Run tests with coverage - run: uv run pytest src/tests/ -v --tb=short --cov=src --cov-report=term-missing + - name: Run tests + run: uv run pytest src/tests/ -v --tb=short