Skip to content

Commit ce8bb44

Browse files
committed
Update advanced backend unit tests workflow and add new Makefile for testing
- Modified the GitHub Actions workflow to trigger unit tests using the new `Makefile.unittests` specifically for the advanced backend. - Created a new `Makefile.unittests` to define the `test-unit` target for running Python unit tests, enhancing the testing process and organization.
1 parent 846457c commit ce8bb44

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/advanced-backend-unit-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
paths:
66
- 'backends/advanced/**'
77
- '.github/workflows/advanced-backend-unit-tests.yml'
8-
- 'Makefile'
8+
- 'backends/advanced/Makefile.unittests'
99
push:
1010
branches:
1111
- dev
1212
- main
1313
paths:
1414
- 'backends/advanced/**'
1515
- '.github/workflows/advanced-backend-unit-tests.yml'
16-
- 'Makefile'
16+
- 'backends/advanced/Makefile.unittests'
1717
workflow_dispatch:
1818

1919
permissions:
@@ -38,4 +38,5 @@ jobs:
3838
uses: astral-sh/setup-uv@v4
3939

4040
- name: Run advanced backend unit tests
41-
run: make test-unit
41+
working-directory: backends/advanced
42+
run: make -f Makefile.unittests test-unit
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: help test-unit test-unit-fast
2+
3+
help:
4+
@echo "Advanced backend unit test targets"
5+
@echo " make -f Makefile.unittests test-unit Run Python unit tests"
6+
7+
test-unit:
8+
@echo "Running advanced backend Python unit tests..."
9+
@uv run --group test pytest tests/unit tests/test_init_llm_setup.py
10+
@echo "Advanced backend Python unit tests completed"

0 commit comments

Comments
 (0)