Skip to content

fix(pypi): update dependency mcp to v2.1.1 (#451) #1705

fix(pypi): update dependency mcp to v2.1.1 (#451)

fix(pypi): update dependency mcp to v2.1.1 (#451) #1705

Workflow file for this run

name: Build PyPI
on:
workflow_call:
inputs:
ref:
description: "Branch, tag or SHA to build. Empty = the caller's ref."
required: false
type: string
default: ""
artifact-name:
description: >
Name to upload the build output under. The release flow runs this
workflow twice in one run -- once on the branch, once on the tag -- and
upload-artifact rejects a duplicate name.
required: false
type: string
default: "dist"
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: read
jobs:
linting:
name: Reuse linting job
uses: ./.github/workflows/lint.yml
build:
needs: linting
runs-on: ubuntu-latest
steps:
# Full history and tags: hatch-vcs derives the version from git state, so a
# shallow clone would build the wrong number rather than fail.
- name: Check out source repository
uses: actions/checkout@v7.0.1
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true
ref: ${{ inputs.ref || github.ref }}
- name: Set up Python
uses: actions/setup-python@v7.0.0
with:
python-version: "3.13.15"
- name: Install dependencies
# renovate: datasource=pypi depName=hatch
run: pip install hatch==1.18.0
- name: Run unit tests
run: hatch run dev:pytest --junitxml=build/junit.xml --cov=reqstool --cov-report=html -o junit_family=xunit2
- name: Build project
run: hatch build
- name: Test reqstool-client from build by installing and running
run: |
WHL_FILE=$(ls dist/*.whl)
pip install $WHL_FILE
reqstool status local -p docs/reqstool
# Upload artifacts for later use
- name: Upload Artifacts
uses: actions/upload-artifact@v7.0.1
with:
name: ${{ inputs.artifact-name || 'dist' }}
path: dist/