CI: verify package metadata on all builds.

This commit is contained in:
Catherine 2024-02-13 12:03:10 +00:00
parent 841ab94a76
commit 0eac9c3fd0

View file

@ -168,6 +168,10 @@ jobs:
with: with:
name: code name: code
path: dist/ path: dist/
- name: Verify package metadata
run: |
pip install twine
twine check dist/*
- name: Publish package to Test PyPI - name: Publish package to Test PyPI
if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && github.event.ref == 'refs/heads/main' }} if: ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1