Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,28 @@ jobs:
- name: Coverage
uses: codecov/codecov-action@v5

build-and-inspect-package:
name: Build & inspect package.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: hynek/build-and-inspect-python-package@v2

deploy:
# this will run when you have tagged a commit, starting with "v*"
# and requires that you have put your twine API key in your
# github secrets (see readme for details)
needs: [test]
needs: [test, build-and-inspect-package]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: astral-sh/setup-uv@v7
- name: Download built artifact to dist/
uses: actions/download-artifact@v6
with:
python-version: "3.13"
enable-cache: false
- name: Build package
run: |
python -m pip install build
python -m build
name: Packages
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1