Skip to content

Commit 805b260

Browse files
Update workflows to adjust test commands for proper path handling
1 parent 1592bd5 commit 805b260

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main", "deploy-and-test" ]
99
pull_request:
1010
branches: [ "main" ]
1111

@@ -47,4 +47,4 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
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
@@ -35,7 +36,7 @@ jobs:
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

0 commit comments

Comments
 (0)