chore: bump version to 0.1.2 #1
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: Publish to PyPI | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| id-token: write # required for OIDC trusted publishing | |
| contents: read | |
| env: | |
| OMNIBIOAI_MODEL_REGISTRY_ROOT: /tmp/test_registry | |
| OMNIBIOAI_MODEL_REGISTRY_BACKEND: localfs | |
| OMNIBIOAI_MODEL_REGISTRY_STRICT_VERIFY: "1" | |
| jobs: | |
| test: | |
| name: Tests before publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install package + dev deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Run tests with coverage gate | |
| run: | | |
| pytest \ | |
| --cov=omnibioai_model_registry \ | |
| --cov-report=term-missing \ | |
| --cov-fail-under=95 \ | |
| -q | |
| build: | |
| name: Build sdist + wheel | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Build | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install build | |
| python -m build | |
| - name: Upload dist artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/* | |
| publish: | |
| name: Publish to PyPI | |
| runs-on: ubuntu-latest | |
| needs: [ test, build ] | |
| environment: pypi | |
| steps: | |
| - name: Download dist artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Publish to PyPI (trusted publishing / OIDC) | |
| uses: pypa/gh-action-pypi-publish@release/v1 |