-
Couldn't load subscription status.
- Fork 341
Using GitHub Actions instead of Travis CI #18
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
Conversation
09d9863 to
ca6234b
Compare
ca6234b to
2c626c6
Compare
aebeb2f to
33ea68f
Compare
|
@ziirish @SteadBytes please look at this PR and tell me your thoughts about it. |
|
@SVilgelm, thank you for your efforts here! However I cannot find a related issue and discussion regarding this change - please do open an issue before implementing changes for a PR. This allows discussion around how a change should be made/if it's needed at all to ensure that contributors aren't using up their valuable time needlessly! I am not familiar with GitHub actions and I haven't personally had any trouble with our Travis CI setup yet so I will need to spend some time evaluating whether this change - Ill do this tomorrow. It should also be discussed by other team members @ziirish, @j5awry. |
|
Hello, Sorry I'm overwhelmed at the moment both professionally and personally, hence my lack of activity the last few days. I agree with @SteadBytes on the fact we didn't discuss this change earlier (or not deep/long enough). I remember we had a quick chat about such eventuality prior we forked but we didn't settle anything. Anyway, I never used GitHub actions so I'll need to take some time to properly review your proposal. |
33ea68f to
b4833ff
Compare
|
@SteadBytes I opened the issue: #23, so we can collect opinions. |
|
@SteadBytes, opening an issue means having a discussion and we could decide to not do it, since you already have the working Travis CI. But now you have an examples, how it works, how it looks like and it is easier to make a "right" decision ;-) |
|
Anyway I didn't spend too much time on this work. It's just for fun, new challenges, new experience. |
|
I have now partially read the github actions doc and I'm confident with your change. Thanks again for your time and effort. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a few possible improvements. I guess I could have had the same remarks on the original .travis-ci.yml file, but since we didn't author this file in the first place, I never gave it a proper review.
Other than that, everything looks clear to me and I'm okay with such change if others agree as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Here is the checks on my fork: https://github.com/SVilgelm/flask-restx/pull/4/checks ✅ |
|
I have a couple of Ideas how to Improve it:
But will create additional PR when this is merged |
I don't see a step for this. I think we can open a separate issue related to dependencies, how we're handling them, and testing upgrades. some of the past tickets have been related to Flask versions moving before we've really done a check. Having a cron that automatically runs tests, and runs against newer dependencies would be awesome. |
|
I agree we should open another issue for the dependency thing. I'll do that when I have a chance.
|
|
i've gone ahead and opened #29 for automated dependency checks |
4d36500 to
4e9e605
Compare
|
Guys, |
|
@SVilgelm I'm not quite sure what you mean sorry? Yes releases are performed via Travis whenever a new Git tag is pushed https://github.com/python-restx/flask-restx/blob/master/CONTRIBUTING.rst#release-process Do you mean the 'releases' on GitHub itself? If so, that's done after the successful push to PyPi from a tag. All we do is manually create a new release (e.g. click the new release button 😂) from the tag and add some release notes. GitHub automatically adds Zip files of the source at the tag. |
yeah, I mean GitHub releases. So, we can make it automatically if you will create a tag with an annotation. I'm doing it here: https://github.com/SVilgelm/marshmallow-objects/releases I'm using a tool I have created for such tasks: https://github.com/sv-tools/bumptag |
|
So, let’s merge this? |
|
A few questions first:
|
Examples of the Push and Pull Request checks are here: https://github.com/SVilgelm/flask-restx/pull/3/checks Example of the release workflow: https://github.com/SVilgelm/flask-restx/runs/410117918?check_suite_focus=true I can test it only on my fork. I'm planning to create a PR with something, then we can release version 0.1.1 |
2fdc8f2 to
965c2b4
Compare
965c2b4 to
7ab92eb
Compare
|
@SteadBytes the contributing.rst is updated |
|
I'm still OK with this change. I have added the secrets in the project settings so hopefully everything should run smoothly. I'd like this one to be merged prior the v0.1.1 release so we have a real use/test case. |
|
I'm still good as well. Would love to see this get in, and the dependency issue. we're seeing fun compatibility issues cropping up. |
|
Yep, release workflow works well :))) |
|
Well done 👍 Now I'll be working on the coveralls issue. |
|
What is wrong with coveralls? |
|
@thanks, I didn't know about new Gitter channel :) |
Fix #23
Run tests using GitHub Actions for all raised pull requests and pushed commits to a branch.
Switching to GitHub Actions give us more flexibility, it allows to run the tests in any fork for push event.
Examples of the Push and Pull Request checks are here: https://github.com/SVilgelm/flask-restx/pull/3/checks
it's a PR to master branch in my fork.
Example of the release workflow: https://github.com/SVilgelm/flask-restx/runs/410117918?check_suite_focus=true
and the pypi: https://pypi.org/project/flask-restx-svilgelm-test/99.99.99/
The workflows need the
PYPI_PASSWORD(token) andCOVERALLS_REPO_TOKENsecrets to be configured.