Fix CI: remove quotes around wheel glob so shell expands it #5
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - run: uv python install 3.13 | |
| - run: uv sync --locked --dev --extra viewer | |
| - run: uv run ruff check src/ tests/ | |
| - run: uv run pytest tests/ -x -q | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| environment: | |
| name: pypi | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - run: uv python install 3.13 | |
| - run: uv build | |
| - name: Smoke test wheel | |
| run: | | |
| uv run --isolated --no-project --with dist/*.whl \ | |
| python -c "from ocr_bench.cli import main; print('OK')" | |
| - run: uv publish --trusted-publishing always |