-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment/PyPi publication considerations and workflow #12
Comments
Update on this
|
What happens if I try to push a commit to a branch and there are failing tests? Does the push fail? |
The push would succeed, but on GitHub the 'tests' Action would fail and you would get an email to say it had failed. |
The only outstanding part of this issue is some form of test coverage metric. I have used Any views on what we should use? |
You mean the badge that's in the table at the top of the page at https://pypi.org/project/nhs-number/ under "Coverage"? |
Yep, I saw this but do we need to do anything to that badge to make it work with the new repo name? GH automatically redirects but at present it's pointing to https://codecov.io/gh/andylaw/NhsNumberChecks/branch/main/graph/badge.svg which is the old repo name. I had assumed the coverage metric there was from the old version, altough I would hope we have not regressed in terms of coverage in the new version. |
You're right - it does !! Edit the Readme.md file and see what happens |
(and maybe break some tests or add some additional code to see if you can make the number changes) |
Just starting a discussion about what preferences we would have regarding the publication workflow.
CI/CD
I'm assuming we would want some form of CI/CD setup, in the past @andylaw used Travis CI but in our chat a while back it was suggested we could switch to GitHub Actions. I'm happy with Actions if everyone else is.
Branches and deployment
The Travis CI setup deploys the
staging
branch to test.pypi.org and themain
branch to the live pypi.org site, which seems like a good pattern. My initial PRs have been againstmain
but in future I will PR againstdevelopment
Hence:
development
-> local testingstaging
-> https://test.pypi.org/project/nhs-number/main
-> https://pypi.org/project/nhs-number/Versioning
We should continue to use SemVer as per @andylaw's prior work. Some tools exist to auto-increment the version number, one is Bump2Version, and another is this neat mechanism using GitHub Actions and a
workflow_dispatch
trigger: https://www.seanh.cc/2022/05/21/publishing-python-packages-from-github-actions/#automatically-generating-the-next-version-numberCode coverage
Do we use
coverage
or CodeCov? I'm happy to use CodeCov if it is free for OSS projects (it seems to be) and adds additional features.The text was updated successfully, but these errors were encountered: