generated from roboflow/template-python
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: π separate TestPyPI publishing workflows
- Loading branch information
1 parent
3ee6de3
commit e543aac
Showing
3 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish Supervision Releases to TestPyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: {} # Explicitly remove all permissions by default | ||
|
||
jobs: | ||
publish-testpypi: | ||
name: Publish Release Package | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
url: https://pypi.org/project/supervision/ | ||
timeout-minutes: 10 | ||
permissions: | ||
id-token: write # Required for PyPI publishing | ||
contents: read # Required for checkout | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- name: π₯ Checkout the repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: π Install uv and set Python version ${{ matrix.python-version }} | ||
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: ποΈ Build source and wheel distributions | ||
run: | | ||
uv pip install -r pyproject.toml --extra build | ||
uv build | ||
uv run twine check --strict dist/* | ||
- name: π Publish to Test-PyPi | ||
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
attestations: true |
This file contains 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