Bump urllib3 from 2.6.3 to 2.7.0 in the uv group across 1 directory #214
Workflow file for this run
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
| # CI/CD Workflow for spotfm Tests | |
| # | |
| # This workflow runs the test suite automatically on: | |
| # - Every push to main branch | |
| # - Every pull request targeting main | |
| # | |
| # Test Matrix: | |
| # - Python version: 3.14 (minimum required version) | |
| # - Operating systems: Ubuntu (Linux), macOS | |
| # | |
| # Test flow: | |
| # 1. Unit tests (step in `test` job): Fast tests with no external dependencies | |
| # 2. Integration tests (step in `test` job): Tests that use temp databases | |
| # 3. Coverage (step in `test` job): Full test suite with coverage report | |
| # 4. Coverage upload (step in `test` job): Sends coverage to Codecov (Linux + Python 3.14 only) | |
| # 5. Test summary (separate `test-summary` job): Final status check | |
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.14"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run unit tests | |
| run: uv run pytest -m unit --tb=short | |
| - name: Run integration tests | |
| run: uv run pytest -m integration --tb=short | |
| - name: Run all tests with coverage | |
| run: uv run pytest --cov=spotfm --cov-report=xml --cov-report=term | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| if: matrix.os == 'ubuntu-latest' | |
| with: | |
| file: ./coverage.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| test-summary: | |
| name: Test Summary | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: always() | |
| steps: | |
| - name: Check test results | |
| run: | | |
| if [ "${{ needs.test.result }}" == "success" ]; then | |
| echo "✅ All tests passed!" | |
| else | |
| echo "❌ Tests failed!" | |
| exit 1 | |
| fi |