This repository was archived by the owner on Feb 12, 2026. It is now read-only.
feat: add track like media button #332
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: Lint and Test | |
| on: | |
| pull_request: | |
| paths: | |
| - 'nowplaying/**' | |
| - 'tests/**' | |
| - '.github/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.env.example' | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'nowplaying/**' | |
| - 'tests/**' | |
| - '.github/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.env.example' | |
| jobs: | |
| lint_test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.12'] | |
| env: | |
| UV_CACHE_DIR: ~/.cache/uv | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v1 | |
| - name: Cache uv dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.UV_CACHE_DIR }} | |
| key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/uv.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-uv-${{ matrix.python-version }}- | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Run mypy | |
| run: uv run mypy nowplaying | |
| - name: Run ruff check | |
| run: uv run ruff check --output-format=github . | |
| - name: Run ruff format | |
| run: uv run ruff format --check . | |
| - name: Run tests | |
| run: | | |
| cp .env.example .env | |
| uv run pytest . --exitfirst | |
| - name: Prune uv cache | |
| run: uv cache prune |