猬嗭笍(deps): Bump the console-npm group in /apps/mewbo_console with 26 updates #559
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: Python Tests | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Git ref (branch or tag) to test" | |
| required: false | |
| permissions: | |
| contents: read | |
| id-token: write | |
| # One run per PR; a new commit cancels the superseded run. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| coverage: | |
| name: pytest + 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=mewbo_core,mewbo_tools,mewbo_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/mewbo_core/src/mewbo_core/*" \ | |
| --include "*/packages/mewbo_core/src/mewbo_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 |