get version from version file in the repository ( this will be used with the test step )
install the package from dist/*
run unit test
publish package to pypi ( using pypa/gh-action-pypi-publish )
install package from pypi URL to verify
Version is read from the version file both on the setup.py and in the workflow during install/test
Once we make a commit on the main branch, we can see the workflow run on the actions tab of the repository
After the job run we can see our package in pypi webpage.
| Note: if you notice the workflow file we can see a secret being used with in package upload. Add a GitHub secret called PYPI_TOKEN which has the token from pypi account.