build(deps-dev): update ruff requirement from <0.13,>=0.12 to >=0.16.1,<0.17 #48
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: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| python: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install development tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements-dev.txt | |
| - name: Run Ruff | |
| run: ruff check . | |
| - name: Compile scripts | |
| run: python -m py_compile bin/youtube-autoencoder bin/youtube-autoencoder-api bin/youtube-autoencoder-test-pattern bin/youtube-autoencoder-telemetry | |
| - name: Run tests | |
| run: pytest -q | |
| - name: Verify executable scripts | |
| run: | | |
| test -x bin/youtube-autoencoder | |
| test -x bin/youtube-autoencoder-api | |
| test -x bin/youtube-autoencoder-test-pattern | |
| test -x bin/youtube-autoencoder-telemetry | |
| - name: Verify systemd units | |
| run: | | |
| sudo install -m 0755 bin/youtube-autoencoder /usr/local/bin/youtube-autoencoder | |
| sudo install -m 0755 bin/youtube-autoencoder-telemetry /usr/local/bin/youtube-autoencoder-telemetry | |
| systemd-analyze verify \ | |
| systemd/youtube-autoencoder@.service \ | |
| systemd/youtube-autoencoder-telemetry@.service \ | |
| systemd/youtube-autoencoder-telemetry@.timer \ | |
| systemd/user/youtube-autoencoder.service \ | |
| systemd/user/youtube-autoencoder-telemetry.service \ | |
| systemd/user/youtube-autoencoder-telemetry.timer | |
| repository-metadata: | |
| name: Repository Metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Lint Markdown | |
| uses: DavidAnson/markdownlint-cli2-action@v24 | |
| with: | |
| globs: | | |
| **/*.md | |
| - name: Lint GitHub Actions workflows | |
| uses: rhysd/actionlint@v1.7.12 |