9194ef5abd
Docs/Test Workflow / Test docs build (push) Failing after 0s
Check links & references / links-check (push) Failing after 1s
Pytest/Test Workflow / Import Test and Pytest Run (ubuntu-latest, 3.10) (push) Failing after 0s
Pytest/Test Workflow / Import Test and Pytest Run (ubuntu-latest, 3.11) (push) Failing after 0s
PR Conflict Labeler / main (push) Failing after 2s
Pytest/Test Workflow / Import Test and Pytest Run (ubuntu-latest, 3.12) (push) Failing after 2s
Pytest/Test Workflow / Import Test and Pytest Run (ubuntu-latest, 3.13) (push) Failing after 0s
Pytest/Test Workflow / Build this Package (push) Failing after 5s
Pytest/Test Workflow / Import Test and Pytest Run (macos-latest, 3.10) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (macos-latest, 3.11) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (macos-latest, 3.12) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (macos-latest, 3.13) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (windows-latest, 3.10) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (windows-latest, 3.11) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (windows-latest, 3.12) (push) Has been cancelled
Pytest/Test Workflow / Import Test and Pytest Run (windows-latest, 3.13) (push) Has been cancelled
Pytest/Test Workflow / testing-guardian (push) Has been cancelled
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Publish Supervision Releases to TestPyPI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: [main, develop]
|
|
paths:
|
|
- ".github/workflows/build-package.yml"
|
|
- ".github/workflows/publish-testpypi.yml"
|
|
|
|
permissions: {} # Explicitly remove all permissions by default
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: read
|
|
uses: ./.github/workflows/build-package.yml
|
|
|
|
publish-testpypi:
|
|
name: Publish Release Package
|
|
needs: build
|
|
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
|
|
steps:
|
|
- name: 📥 Download distribution artifacts
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
name: dist
|
|
path: dist/
|
|
- name: List distribution artifacts
|
|
run: ls -lh dist/
|
|
|
|
- name: 🚀 Publish to Test-PyPi
|
|
if: github.event_name != 'pull_request'
|
|
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
|
|
with:
|
|
repository-url: https://test.pypi.org/legacy/
|
|
attestations: true
|