Skip to content

ci: fix release workflow #5

ci: fix release workflow

ci: fix release workflow #5

Workflow file for this run

name: "Lint"
on:
workflow_call:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test:
name: "Test"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v4"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/pyproject.toml
- name: "Lint & Format"
run: |
uv run ruff format --check
uv run ruff check
- name: "Typing"
run: |
uv run mypy custom_components tests
- name: "Tests"
run: |
mkdir -p reports
uv run pytest --cov-report html:reports/coverage --html=reports/test.html --cov=custom_components.rfplayer tests/
- uses: actions/upload-artifact@v4
with:
name: test-reports
path: reports