ci(aur): derive pkgver from the release tag name, drop release-commit fetch (CodeQL #6) #423
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: CI | |
| on: | |
| push: | |
| branches: [master, dev] | |
| pull_request: | |
| branches: [master, dev] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - run: pip install ruff==0.15.1 | |
| - run: ruff check src/ tests/ | |
| - run: ruff format --check src/ tests/ | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| cache: pip | |
| - run: python -m venv .venv | |
| - run: .venv/bin/pip install -e ".[dev]" | |
| - run: .venv/bin/pyright src/ytm_player/ | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.14"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - run: pip install -e ".[dev]" | |
| # dbus-fast (a Linux core dep) installs with .[dev] on ubuntu, giving the | |
| # #106 platform-guard test teeth: it proves the forced-win32/darwin import | |
| # never pulls dbus-fast in even when it's present. macOS/Windows runners | |
| # correctly never install it (sys_platform marker). | |
| - run: pytest --cov=ytm_player --cov-report=term-missing |