feat: v1.9.2 — context awareness, parallel batch, plugin system, stru… #23
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: Build | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| artifact: OpenCut-Server-Windows | |
| - os: ubuntu-latest | |
| artifact: OpenCut-Server-Linux | |
| - os: macos-latest | |
| artifact: OpenCut-Server-macOS | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| pip install -e . | |
| - name: Lint with ruff | |
| run: | | |
| pip install ruff | |
| ruff check opencut/ --select E,F,I --ignore E501,E402 | |
| - name: Run tests with coverage | |
| run: | | |
| pip install pytest-cov | |
| python -m pytest tests/ -v --tb=short --cov=opencut --cov-report=term-missing --cov-fail-under=50 | |
| - name: Smoke test imports | |
| run: | | |
| python -c "from opencut.server import app; print('Import OK')" | |
| python -c "from opencut.security import get_csrf_token; print('Security OK')" | |
| python -c "from opencut.jobs import _new_job; print('Jobs OK')" | |
| python -c "from opencut.core.repeat_detect import detect_repeated_takes; print('Core OK')" | |
| python -c "from opencut.core.nlp_command import parse_command; print('NLP OK')" | |
| python -c "from opencut.cli import cli; print('CLI OK')" | |
| - name: Build with PyInstaller | |
| if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' | |
| run: pyinstaller opencut_server.spec | |
| - name: Archive build output | |
| if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: dist/OpenCut-Server/ | |
| - name: Upload to release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| cd dist | |
| tar -czf ${{ matrix.artifact }}.tar.gz OpenCut-Server/ | |
| gh release upload ${{ github.ref_name }} ${{ matrix.artifact }}.tar.gz --clobber | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| shell: bash |