Skip to content

chore: add github worfklow to publish sdk on pypy - #32

Open
pdeburen wants to merge 1 commit into
developfrom
chore/add-cicd
Open

chore: add github worfklow to publish sdk on pypy#32
pdeburen wants to merge 1 commit into
developfrom
chore/add-cicd

Conversation

@pdeburen

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 15:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reworks the existing GitHub Actions pipeline into a CI/CD workflow that runs tests across multiple Python versions, builds distribution artifacts, and adds a tag-triggered publish job that uploads the package to PyPI via Trusted Publishing. Also bumps the mypy target Python version and tightens the user-agent test regex.

Changes:

  • Restructure .github/workflows/build.yml into test (3.8/3.9/3.10 matrix), quality, package, docs, and publish jobs, with PyPI Trusted Publishing on v* tag pushes.
  • Bump mypy.ini python_version from 3.8 to 3.10.
  • Make the user-agent regex anchored and tolerant of multi-digit version components.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/build.yml Replaces the lint/build-docs pipeline with a multi-job CI/CD workflow including a tag-gated PyPI publish job.
mypy.ini Raises python_version to 3.10 while the project still supports 3.8+.
tests/test_helpers.py Anchors the user-agent regex and allows multi-digit version segments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mypy.ini
[mypy]

python_version = 3.8
python_version = 3.10
on: push
on:
pull_request:
push:
Comment on lines +135 to +155
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs:
- package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
permissions:
contents: read
id-token: write
environment:
name: pypi
url: https://pypi.org/p/caplena
steps:
- name: Download distribution artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
python -m pip install -e ".[test]"

- name: Run tests
run: pytest -q --ignore=tests/controllers

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants