Skip to content

porting tests from travisCI to github actions - #320

Merged
thraxil merged 1 commit into
masterfrom
switch-to-gha
Jan 20, 2021
Merged

thraxil merged 1 commit into
masterfrom
switch-to-gha

Conversation

@thraxil

@thraxil thraxil commented Jan 14, 2021 •

Copy link
Copy Markdown
Contributor

Next one on our move away from TravisCI.

This ports all of the tests that we were running for Figures on Travis over to Github Actions. Kept things as line-by-line similar as possible as the first phase though I point out some areas that we could probably refactor the tests once we're comfortable with them on GHA.

The PR will not show as mergeable becuase we currently have the repository configured to expect/require passing TravisCI tests. Since this PR removes the Travis config, that obviously won't happen. Once this is approved, one of us with admin access will need to change the repo settings to instead require passing GHA tests.

The only part of the Travis config that I didn't port (for now) is the automated publishing to PyPI. I will port that over to GHA as well, but I want to do it as a separate PR once this one is in.

@thraxil
thraxil force-pushed the switch-to-gha branch 7 times, most recently from 876f944 to be0f3f5 Compare January 14, 2021 15:14
- run: npm install -g yarn
- run: |
cd frontend && yarn install && cd ..
- name: flake8

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this step over from the Travis config, but it seems like it's a bit redundant since the lint tox testenv runs flake8 anyway. We probably don't need to do it separately on each.

- name: install dependencies
run: |
pip install tox flake8
- name: Uses Node.js

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the steps that get run directly from TravisCI, so it runs yarn in the frontend directory before running the tox tests here just as it did on Travis. The python tests don't appear to depend on the frontend stuff in any way though. If we wanted to speed the tests up a little bit, it seems to me like we should pull out the JS stuff into its own separate test config and run that independently of the python tests.

@thraxil
thraxil marked this pull request as ready for review January 14, 2021 15:25
@johnbaldwin

Copy link
Copy Markdown
Contributor

Thanks for doing this PR, @thraxil ! It is now out of date. Do you want me to merge master into it?

@thraxil
thraxil merged commit d06d8fb into master Jan 20, 2021
@OmarIthawi
OmarIthawi deleted the switch-to-gha branch January 20, 2021 12:10
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.

3 participants