Skip to content

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

Closed
wants to merge 21 commits into from

Conversation

srprash
Copy link
Contributor

@srprash srprash commented Dec 11, 2020

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 the py34-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.

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #260 (b6b2eeb) into master (3c1218e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c1218e...b6b2eeb. Read the comment docs.

@srprash
Copy link
Contributor Author

srprash commented Dec 11, 2020

We'll probably need to remove the Travis application too from the repo.

@srprash
Copy link
Contributor Author

srprash commented Jan 12, 2022

Closing this PR in favor of a new one: #322

@srprash srprash closed this Jan 12, 2022
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.

2 participants