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
Migrate CI to github actions #55
Conversation
This reverts commit b8f013f.
The executed jobs remind me that, if you plan on opening a pull request, it is better to create your feature branch on a fork of this repository. Otherwise, jobs run twice, once for the branch, and another time for the push. |
…eded step. Changed mypy to run with latest py version used in tests
Good point 👍 I also noticed that the tests were running twice, which is non optimal. I added a check in 6ec36ee so that they'd only get run once on non-fork PR (like this one). Seen here: zopefoundation/meta#145 (comment) |
Awesome, thanks @ivsanro1! |
* Added test gha * Change codecov in workflows/main.yml * Added mypy in gh action yaml * Double checking ghe test fails * Revert "Double checking ghe test fails" This reverts commit b8f013f. * Added publish github action (untested) * Removed travis-ci yml file * Added check to avoid running tests twice on non-fork PR. Removed unneeded step. Changed mypy to run with latest py version used in tests * Removed "v" in tag regex of publish.yml. Changed badge of CI from travis to gh workflows * Removed travis-ci from badge in README.rst Co-authored-by: Ivan Sanchez <ivan.sanchez@zyte.com> Co-authored-by: Iván Sánchez <30293331+ivsanro1@users.noreply.github.com> Co-authored-by: Ivan Sanchez <ivan.sanchez@zyte.com>
Thanks for rewiew @kmike @Gallaecio ! |
PR on top of #53, fixes issue #52
The Github Actions yml files were heavily inspired in the ones of https://github.com/scrapy/parsel (thanks @Gallaecio for the examples!)
I have not tested the
publish.yml
though. When we make a version release it should get triggered and upload the version to pypi. I also added thePYPI_TOKEN
to gh actions secrets (it was in.travis.yml
before).