https://github.com/lfreleng-actions/python-twine-check-action
Checks validity of Python build artefacts
https://github.com/lfreleng-actions/python-twine-check-action
package python testing validation
Last synced: 10 months ago
JSON representation
Checks validity of Python build artefacts
- Host: GitHub
- URL: https://github.com/lfreleng-actions/python-twine-check-action
- Owner: lfreleng-actions
- License: other
- Created: 2025-03-13T13:08:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T01:41:26.000Z (about 1 year ago)
- Last Synced: 2025-04-09T02:33:15.449Z (about 1 year ago)
- Topics: package, python, testing, validation
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📦 Verify Build Artefacts with Twine
Checks validity of Python build artefacts; call before package publishing.
## python-twine-check-action
## Usage Example
```yaml
- name: "Verify Python build artefacts with Twine"
uses: lfreleng-actions/python-twine-check-action@main
```
## Inputs
| Variable Name | Required | Default | Description |
| ------------- | -------- | ------- | ------------------------------------- |
| PATH_PREFIX | False | | Path/directory to Python project code |
| PATH | False | dist | Path to Python build artefacts |
## Outputs
This action has no outputs, but will exit with an error if artefact
validation fails.
## Notes
When calling this action separate from a build job, ensure build products are
available by using upload/download artefacts.
## Action Output Example
```console
Run lfreleng-actions/python-twine-check-action@main
Run # Verify Python build artefacts with Twine
osc_github_devops-0.1.28.dev1-py3-none-any.whl
osc_github_devops-0.1.28.dev1.tar.gz
Files in specified directory/path: 2
Installing: twine
Running: twine check dist/*
Checking dist/osc_github_devops-0.1.28.dev1-py3-none-any.whl: PASSED
Checking dist/osc_github_devops-0.1.28.dev1.tar.gz: PASSED
Verified Python build artefacts with Twine ✅
```