chore(release): 6.0.0 #45
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
| # CI: pytest, Ruff, optional pip-audit, import/Qt smoke. | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| PYTHONPATH: src | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install system packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ffmpeg libegl1 libgl1 libdbus-1-3 libxcb-cursor0 | |
| - name: Install Python deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest "ruff>=0.15.0" | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| - name: Ruff check | |
| run: ruff check src tests tools | |
| - name: Ruff format | |
| run: ruff format --check src tests tools | |
| - name: Mypy (src/core, advisory) | |
| continue-on-error: true | |
| run: | | |
| pip install mypy | |
| mypy src/core | |
| - name: Pytest | |
| run: python -m pytest tests/ --tb=short | |
| - name: pip-audit (informational) | |
| continue-on-error: true | |
| run: | | |
| pip install pip-audit | |
| pip-audit -r requirements.txt | |
| - name: Import and Qt smoke check | |
| run: | | |
| python - <<'PY' | |
| import os | |
| import sys | |
| os.environ.setdefault("QT_QPA_PLATFORM", "offscreen") | |
| import core.app_paths # noqa: F401 | |
| import core.debug_logger # noqa: F401 | |
| import core.video_target_presets # noqa: F401 | |
| import torch # noqa: F401 | |
| import core.rrdbnet # noqa: F401 | |
| import core.realesrgan_runner # noqa: F401 | |
| import core.realesrgan_models # noqa: F401 | |
| from PySide6.QtWidgets import QApplication, QLabel, QWidget | |
| app = QApplication.instance() or QApplication(sys.argv) | |
| w = QWidget() | |
| lab = QLabel("chrono-smoke", w) | |
| lab.show() | |
| w.show() | |
| app.processEvents() | |
| assert lab.text() == "chrono-smoke" | |
| print("smoke ok") | |
| PY |