Skip to content

feat: add MCP transport client, remove broken speculative REST method… #10

feat: add MCP transport client, remove broken speculative REST method…

feat: add MCP transport client, remove broken speculative REST method… #10

Workflow file for this run

name: Publish to PyPI
on:
push:
tags: ["v*"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
attestations: write
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with: { python-version: "3.12" }
- run: uv sync --all-extras
- name: Audit dependencies
run: uv run pip-audit
- run: uv run pytest
- run: uv build
# SLSA provenance attestation for supply chain integrity
- name: Attest build provenance
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-path: dist/*
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with: { name: dist, path: dist/ }
publish-testpypi:
needs: [build]
if: "github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && contains(github.ref_name, '-')"
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/hyperping
permissions:
id-token: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with: { name: dist, path: dist/ }
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
with:
repository-url: https://test.pypi.org/legacy/
publish-pypi:
needs: [build]
if: "github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && !contains(github.ref_name, '-')"
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/hyperping
permissions:
id-token: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with: { name: dist, path: dist/ }
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1