@@ -2,12 +2,12 @@ name: Unit Tests - Client Advisor
22
33on :
44 push :
5- branches : main
5+ branches : [ main, dev]
66 # Trigger on changes in these specific paths
77 paths :
88 - ' ClientAdvisor/**'
99 pull_request :
10- branches : main
10+ branches : [ main, dev]
1111 types :
1212 - opened
1313 - ready_for_review
2929 uses : actions/setup-python@v5
3030 with :
3131 python-version : " 3.11"
32- - name : Install Backend Dependencies
33- run : |
34- cd ClientAdvisor/App
35- python -m pip install -r requirements.txt
36- python -m pip install coverage pytest-cov
37- - name : Run Backend Tests with Coverage
38- run : |
39- cd ClientAdvisor/App
40- python -m pytest -vv --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --cov-fail-under=80 --junitxml=coverage-junit.xml
41- - uses : actions/upload-artifact@v4
42- with :
43- name : client-advisor-coverage
44- path : |
45- ClientAdvisor/App/coverage.xml
46- ClientAdvisor/App/coverage-junit.xml
47- ClientAdvisor/App/htmlcov/
4832 - name : Set up Node.js
4933 uses : actions/setup-node@v3
5034 with :
6347 path : |
6448 ClientAdvisor/App/frontend/coverage/
6549 ClientAdvisor/App/frontend/coverage/lcov-report/
50+ ClientAdvisor/App/htmlcov/
51+ - name : Install Backend Dependencies
52+ run : |
53+ cd ClientAdvisor/App
54+ python -m pip install -r requirements.txt
55+ python -m pip install coverage pytest-cov
56+ - name : Run Backend Tests with Coverage
57+ run : |
58+ cd ClientAdvisor/App
59+ python -m pytest -vv --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --cov-fail-under=80 --junitxml=coverage-junit.xml
60+ - uses : actions/upload-artifact@v4
61+ with :
62+ name : client-advisor-coverage
63+ path : |
64+ ClientAdvisor/App/coverage.xml
65+ ClientAdvisor/App/coverage-junit.xml
66+ ClientAdvisor/App/htmlcov/
0 commit comments