File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name: Python application
55
66on :
77 push :
8- branches : [ "main" ]
8+ branches : [ "main", "deploy-and-test" ]
99 pull_request :
1010 branches : [ "main" ]
1111
4747 - name : Test with pytest
4848 run : |
4949 $env:PYTHONPATH="$pwd\src"
50- pytest -v --show-capture=stdout -k "not integration"
50+ pytest -v --show-capture=stdout -k "not integration" ./src/tests
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main # Trigger on push to the main branch
7+ - deploy-and-test # Also trigger on deploy-and-test branch
78 pull_request :
89 branches :
910 - main # Trigger on pull requests to the main branch
3536
3637 - name : Run Backend Tests with Coverage
3738 run : |
38- if python -m pytest --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=coverage-junit.xml; then
39+ if python -m pytest --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=coverage-junit.xml ./src/tests ; then
3940 echo "Tests completed, checking coverage."
4041 # Only fail if coverage does not meet criteria
4142 if [ -f coverage.xml ]; then
You can’t perform that action at this time.
0 commit comments