Skip to content

Commit 6a6e354

Browse files
Refactor test workflow to run backend tests together and improve output handling
1 parent 9a158aa commit 6a6e354

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,11 @@ jobs:
5050
echo "skip_tests=false" >> $GITHUB_ENV
5151
fi
5252
53-
- name: Run app.py tests separately (requires isolation due to mocking)
54-
if: env.skip_tests == 'false'
55-
run: |
56-
set +x
57-
python -m pytest src/tests/backend/test_app.py --cov=backend.app --cov-report= --cov-config=.coveragerc -q > /dev/null 2>&1 || true
58-
echo "✓ app.py tests completed"
59-
60-
- name: Run all other backend tests with coverage
53+
- name: Run backend tests with coverage
6154
if: env.skip_tests == 'false'
6255
run: |
56+
python -m pytest src/tests/backend/test_app.py --cov=backend.app --cov-report= --cov-config=.coveragerc -q > /dev/null 2>&1
6357
python -m pytest src/tests/backend --cov=backend --cov-append --cov-report= --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py -q
64-
65-
- name: Generate combined coverage report
66-
if: env.skip_tests == 'false'
67-
run: |
6858
python -m coverage report --rcfile=.coveragerc
6959
7060
# - name: Run tests with coverage

0 commit comments

Comments
 (0)