Handle editable PPTX fallback failures #12
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 | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| frontend: | |
| name: Frontend | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: web/package-lock.json | |
| - name: Install frontend dependencies | |
| working-directory: web | |
| run: npm ci | |
| - name: Lint frontend | |
| working-directory: web | |
| run: npm run lint | |
| - name: Test frontend | |
| working-directory: web | |
| run: npm run test | |
| - name: Build frontend | |
| working-directory: web | |
| run: npm run build | |
| backend: | |
| name: Backend Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| - "3.12" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: | | |
| requirements.txt | |
| requirements-dev.txt | |
| - name: Install backend dependencies | |
| run: python -m pip install -r requirements-dev.txt | |
| - name: Ruff lint | |
| run: ruff check api src tests main.py | |
| - name: Ruff format check | |
| run: ruff format --check api src tests main.py | |
| - name: Test backend with coverage | |
| run: python -m pytest --cov=api --cov=src --cov-report=term-missing |