Bump vite from 7.1.5 to 7.1.11 in /src/frontend #700
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Workflow with Coverage | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
- demo | |
- hotfix | |
pull_request: | |
types: | |
- opened | |
- ready_for_review | |
- reopened | |
- synchronize | |
branches: | |
- main | |
- main | |
- dev | |
- demo | |
- hotfix | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r src/backend/requirements.txt | |
- name: Check if test files exist | |
id: check_tests | |
run: | | |
if [ -z "$(find src -type f -name 'test_*.py')" ]; then | |
echo "No test files found, skipping tests." | |
echo "skip_tests=true" >> $GITHUB_ENV | |
else | |
echo "Test files found, running tests." | |
echo "skip_tests=false" >> $GITHUB_ENV | |
fi | |
- name: Run tests with coverage | |
if: env.skip_tests == 'false' | |
run: | | |
pytest --cov=. --cov-report=term-missing --cov-report=xml \ | |
--ignore=tests/e2e-test/tests \ | |
--ignore=src/backend/tests/test_app.py \ | |
--ignore=src/tests/agents/test_foundry_integration.py \ | |
--ignore=src/tests/mcp_server/test_factory.py \ | |
--ignore=src/tests/mcp_server/test_hr_service.py \ | |
--ignore=src/backend/tests/test_config.py \ | |
--ignore=src/tests/agents/test_human_approval_manager.py \ | |
--ignore=src/backend/tests/test_team_specific_methods.py \ | |
--ignore=src/backend/tests/models/test_messages.py \ | |
--ignore=src/backend/tests/test_otlp_tracing.py \ | |
--ignore=src/backend/tests/auth/test_auth_utils.py | |
# - name: Run tests with coverage | |
# if: env.skip_tests == 'false' | |
# run: | | |
# pytest --cov=. --cov-report=term-missing --cov-report=xml --ignore=tests/e2e-test/tests | |
- name: Skip coverage report if no tests | |
if: env.skip_tests == 'true' | |
run: | | |
echo "Skipping coverage report because no tests were found." |