-
Notifications
You must be signed in to change notification settings - Fork 0
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
test github actions for CI #46
Comments
@MattClarkson @thompson318 @mianasbat See https://github.com/UCL/scikit-surgerycore/blob/github-actions-tox/.github/workflows/pythonapp.yml for example config file to run tests on mac/windows/linux. If you go to the 'Actions' tab in the repo you can see the results of the run(s). |
Looks about right, thank you. It's good that it's using tox. I couldn't find the badges, but I assume they're somewhere. So if we can set them up, and deploy to PyPi, then remove travis.yml and gitlab.yml we've got a nicely migrated repository. |
…er naming for untagged commits, not worth fixing (for now)
I have used an API token, rather than username/password for authentication with PyPI, which is now the recommended method of authenticating it seems. The token is stored as a GitHub secret on the repo. It doesn't look like it is possible to share token between repos, so we will have to add it manually to other repos as we go along. As a side note, I read that GitHub actions are only free for public repos - are we likely to put any private ones on GitHub, or will we be keeping those on Gitlab? |
My approach would be to only put public repos on github. If it's something you want to keep private then you might as well leave it on gitlab. |
Is this ready to be merged? |
Yes - then we can check that the status badge is working properly, and if so, close the issue. |
I just reopened this for the coverage button. The coverage badge links to coveralls.io which was done with after_success:
in travis. The coverage badge still links to coveralls, but I don't think the workflow is setting it now? Is there a better way to report coverage with the github workflow? |
I'll take a look |
Doesn't seem like there is any straightforward way to do it. We'd have to generate the coverage report within tox, which requires a bit of fiddling to get working. I shall keep at it. |
What happens if you just run "coveralls" after tox? All the travis.yml was doing was coverage run -a --source ./sksurgerycore -m pytest -v -s ./tests/ coverage report -m then coveralls |
I think if you run it after tox it won't have access to the coverage report (which is run in tox), but I can check. |
Turns out that does work fine: |
Excellent, thank you. I did put coveralls in requirements-dev, so pip install coveralls may not be necessary, alternatively remove coveralls from requirements-dev. |
Requirements-dev is only installed in the tox environment, so we need the coveralls import as well, but we can take it out of requirements-dev. The alternative is to install requirements-dev in the script, but that seemed unnecessary just to get tox and coveralls. |
Windows/Mac/Linux
The text was updated successfully, but these errors were encountered: