Package MarkAI for uvx markai, vendor pdf.js, add CI and PyPI release
#1
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: [master, main] | |
| pull_request: | |
| jobs: | |
| smoke: | |
| name: Import, build and boot | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.10", "3.13"] | |
| exclude: | |
| # one Python per non-Linux runner is enough signal for a local-first app | |
| - os: windows-latest | |
| python-version: "3.10" | |
| - os: macos-latest | |
| python-version: "3.10" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the package as a user would | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install . | |
| - name: Run the smoke test | |
| # Installs from the wheel, so this also catches templates/static or the | |
| # vendored pdf.js being left out of the package. | |
| run: python tests/smoke_test.py |