- Improved playlist item fetching by adding robust pagination and low-level request hooks for better testing and flexibility. - Refactored track ID extraction logic into reusable helpers for clarity. - Improved initialization for dialog components to avoid circular dependencies in the GUI. - Added new unit tests to validate playlist operations, including track addition/removal and API integration. - Updated metadata functions to simplify dictionary access using `.get` for better readability. - Ensured PySide6 system dependencies are installed in GitHub Actions to address CI compatibility issues. - Streamlined UI package initialization to improve modularity and robustness of imports.
88 lines
2.0 KiB
YAML
88 lines
2.0 KiB
YAML
name: master
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pre-commit
|
|
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
|
|
|
- name: Set up the environment
|
|
uses: ./.github/actions/setup-poetry-env
|
|
|
|
- name: Run checks
|
|
run: make check
|
|
|
|
tox:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.12", "3.13"]
|
|
fail-fast: false
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Poetry
|
|
uses: snok/install-poetry@v1
|
|
|
|
- name: Install system dependencies for PySide6
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libegl1 \
|
|
libgl1 \
|
|
libxkbcommon-x11-0 \
|
|
libxcb-xinerama0 \
|
|
libxrandr2 \
|
|
libxrender1 \
|
|
libxi6 \
|
|
libxcomposite1 \
|
|
libxdamage1 \
|
|
libxtst6
|
|
|
|
- name: Load cached venv
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .tox
|
|
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
|
|
|
|
- name: Install tox
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install tox tox-gh-actions
|
|
|
|
- name: Test with tox
|
|
env:
|
|
QT_QPA_PLATFORM: offscreen
|
|
run: tox
|
|
|
|
check-docs:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up the environment
|
|
uses: ./.github/actions/setup-poetry-env
|
|
|
|
- name: Check if documentation can be built
|
|
run: poetry run mkdocs build -s
|