docs: fix completion links and update manual completions #298
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: Test Package | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**/*.md' | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| FFMPEG_VERSION: "8.0" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Cache ffmpeg download | |
| uses: actions/cache@v4 | |
| id: cache-ffmpeg | |
| with: | |
| path: /opt/ffmpeg/ffmpeg-n${{ env.FFMPEG_VERSION }}-latest-linux64-gpl-${{ env.FFMPEG_VERSION }}.tar.xz | |
| key: ${{ runner.os }}-ffmpeg | |
| - name: Download ffmpeg if not cached | |
| if: steps.cache-ffmpeg.outputs.cache-hit != 'true' | |
| run: | | |
| echo "Downloading ffmpeg ${FFMPEG_VERSION}" | |
| wget -q https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n${{ env.FFMPEG_VERSION }}-latest-linux64-gpl-${{ env.FFMPEG_VERSION }}.tar.xz -P /opt/ffmpeg | |
| - name: Extract and install ffmpeg | |
| run: | | |
| echo "Extracting ffmpeg ${FFMPEG_VERSION}" | |
| sudo mkdir -p /opt/ffmpeg/extracted | |
| sudo tar --strip-components 1 -xf /opt/ffmpeg/ffmpeg-n${{ env.FFMPEG_VERSION }}-latest-linux64-gpl-${{ env.FFMPEG_VERSION }}.tar.xz -C /opt/ffmpeg/extracted | |
| echo "Installing ffmpeg ${FFMPEG_VERSION}" | |
| sudo cp /opt/ffmpeg/extracted/bin/ffmpeg /usr/bin/ffmpeg | |
| sudo cp /opt/ffmpeg/extracted/bin/ffprobe /usr/bin/ffprobe | |
| - name: Install dependencies | |
| run: | | |
| uv sync --group dev | |
| - name: Lint with ruff | |
| run: | | |
| uv run ruff check . | |
| uv run ruff format --check . | |
| - name: Type check with mypy | |
| run: | | |
| uv run mypy . | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest tests/ |