diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 62a465d9..1a0fd0a5 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -34,7 +34,7 @@ jobs: fetch-depth: 0 - name: 🐍 Install uv and set Python ${{ matrix.python-version }} - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/publish-test.yml b/.github/workflows/publish-test.yml index e7ab8b53..2b581815 100644 --- a/.github/workflows/publish-test.yml +++ b/.github/workflows/publish-test.yml @@ -12,9 +12,11 @@ permissions: {} # Explicitly remove all permissions by default jobs: build-and-publish-pre-release: - name: Publish Pre-releasePackage + name: Publish Pre-release Package runs-on: ubuntu-latest - environment: test + environment: + name: test + url: https://pypi.org/project/supervision/ timeout-minutes: 10 permissions: id-token: write # Required for PyPI publishing @@ -26,19 +28,16 @@ jobs: - name: 📥 Checkout the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: 🐍 Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + - 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: 📜 Setup Poetry - uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 - - name: 🏗️ Build source and wheel distributions run: | - poetry install --with=build - poetry build - poetry run twine check --strict dist/* + uv pip install -r pyproject.toml --extra build + uv build + uv run twine check --strict dist/* - name: 🚀 Publish to PyPi uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d71c239b..41974fb6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,10 +9,12 @@ on: permissions: {} # Explicitly remove all permissions by default jobs: - build-and-publish-pre-release: + build-and-publish-release: name: Publish Release Package runs-on: ubuntu-latest - environment: release + environment: + name: release + url: https://pypi.org/project/supervision/ timeout-minutes: 10 permissions: id-token: write # Required for PyPI publishing @@ -24,19 +26,16 @@ jobs: - name: 📥 Checkout the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: 🐍 Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + - 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: 📜 Setup Poetry - uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 - - name: 🏗️ Build source and wheel distributions run: | - poetry install --with=build - poetry build - poetry run twine check --strict dist/* + uv pip install -r pyproject.toml --extra build + uv build + uv run twine check --strict dist/* - name: 🚀 Publish to PyPi uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3 diff --git a/.github/workflows/test-doc.yml b/.github/workflows/test-doc.yml index 27714df8..20d50bed 100644 --- a/.github/workflows/test-doc.yml +++ b/.github/workflows/test-doc.yml @@ -24,7 +24,7 @@ jobs: fetch-depth: 0 - name: 🐍 Install uv and set Python ${{ matrix.python-version }} - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/uv-test.yml b/.github/workflows/uv-test.yml index 837d6246..4b96277b 100644 --- a/.github/workflows/uv-test.yml +++ b/.github/workflows/uv-test.yml @@ -1,4 +1,4 @@ -name: 🔧 Uv Checks and Test Workflow +name: 🔧 Test Workflow on: push: paths: @@ -11,7 +11,7 @@ on: workflow_dispatch: jobs: - poetry-tests: + tests: name: Uv install and check timeout-minutes: 10 strategy: @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: 🐍 Install uv and set Python version ${{ matrix.python-version }} - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 with: python-version: ${{ matrix.python-version }} diff --git a/uv.lock b/uv.lock index 327de7e2..a72fe087 100644 --- a/uv.lock +++ b/uv.lock @@ -4760,7 +4760,7 @@ wheels = [ [[package]] name = "supervision" -version = "0.26.0rc2" +version = "0.26.0rc3" source = { editable = "." } dependencies = [ { name = "defusedxml" },