CI: verify package metadata on all builds.
This commit is contained in:
parent
841ab94a76
commit
0eac9c3fd0
4
.github/workflows/main.yaml
vendored
4
.github/workflows/main.yaml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue