Skip to content
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

Merged
merged 10 commits into from Nov 22, 2022
Merged

Conversation

ivsanro1
Copy link
Contributor

@ivsanro1 ivsanro1 commented Nov 7, 2022

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 the PYPI_TOKEN to gh actions secrets (it was in .travis.yml before).

@Gallaecio
Copy link
Member

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.

.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/publish.yml Show resolved Hide resolved
…eded step. Changed mypy to run with latest py version used in tests
@ivsanro1
Copy link
Contributor Author

ivsanro1 commented Nov 7, 2022

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.

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)

.travis.yml Show resolved Hide resolved
@kmike kmike merged commit 3868e9c into add_currency_extraction_eval Nov 22, 2022
@kmike
Copy link
Member

kmike commented Nov 22, 2022

Awesome, thanks @ivsanro1!

kmike added a commit that referenced this pull request Nov 22, 2022
* 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>
@ivsanro1
Copy link
Contributor Author

Thanks for rewiew @kmike @Gallaecio !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants