This repository contains a simple template for creating PyPI packages with automated publishing using GitHub Actions. It includes the following features:
-
Automated Publishing:
- New versions are published to Test PyPI when a new tag with a semantic version is pushed.
- New releases trigger the build and publication of the package to the official PyPI.
-
Continuous Integration/Continuous Deployment (CI/CD):
- Automated testing using
pytest
. - Coverage reports generated with
pytest-cov
and uploaded to Codecov.
- Automated testing using
-
Secrets Configuration:
- Requires
PYPI_TOKEN
andTEST_PYPI_TOKEN
for publishing. - Requires
CODECOV_TOKEN
for generating the coverage badge.
- Requires
This template streamlines the process of developing, testing, and publishing Python packages, ensuring a smooth and automated workflow.