⬆️(deps-dev): Bump ruff from 0.15.0 to 0.15.1 in the python-root grou… #254
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
| name: Test Coverage | |
| on: | |
| push: | |
| paths: | |
| - "**/*.py" | |
| - "**/pyproject.toml" | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Git ref (branch or tag) to test" | |
| required: false | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| COVERAGE_FILE: .coverage | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ inputs.ref || github.ref }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install uv | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras --group dev | |
| - name: Run pytest with coverage | |
| run: | | |
| .venv/bin/coverage run \ | |
| --data-file "${COVERAGE_FILE}" \ | |
| --source=meeseeks_core,meeseeks_tools,meeseeks_ha_conversation \ | |
| -m pytest | |
| .venv/bin/coverage report --data-file "${COVERAGE_FILE}" --skip-covered | |
| .venv/bin/coverage xml --data-file "${COVERAGE_FILE}" -o coverage.xml | |
| - name: Generate core-only coverage report | |
| run: | | |
| .venv/bin/coverage xml \ | |
| --data-file "${COVERAGE_FILE}" \ | |
| --include "packages/meeseeks_core/src/meeseeks_core/*" \ | |
| --include "*/packages/meeseeks_core/src/meeseeks_core/*" \ | |
| -o coverage-core.xml | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-xml | |
| path: | | |
| coverage.xml | |
| coverage-core.xml | |
| - name: Upload overall coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| use_oidc: true | |
| - name: Upload core coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage-core.xml | |
| flags: core | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| use_oidc: true |