-
Notifications
You must be signed in to change notification settings - Fork 144
Using GH actions for unit tests in place of travis #260
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
…s-xray-sdk-python into gh_actions_unit_tests
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
=======================================
Coverage 79.29% 79.29%
=======================================
Files 80 80
Lines 3159 3159
=======================================
Hits 2505 2505
Misses 654 654 Continue to review full report at Codecov.
|
We'll probably need to remove the Travis application too from the repo. |
Closing this PR in favor of a new one: #322 |
Changing our CI to run unit tests through Github actions instead of Travis. Travis has been a little flaky in the past with jobs hanging to report back the status due this known issue.
I played with a couple of options for this workflow and both have some caveats.
First, I tried using the
tox -e py
command in the workflow to run tox tests as mentioned in the official GH docs. But looks like it only works if you have simple tox environments like py27, py34, py 35 and so on, and not if you have environment like py27-default, py38-django22 which is what we have here.Then I tried this seemingly popular tox plugin
tox-gh-actions
which works with any tox environment. This works for us and I did some trial runs here. The only problem with this plugin is that its not available for Python3.4 so we won't be able to run test for thepy34-default
environment.I'm okay with holding out in merging this PR until our next major version where we plan to deprecate python2.7 and python3.4.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.