An open API service indexing awesome lists of open source software.

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

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 ✅
```