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

Add simple github-actions workflow to test code #35

Merged
merged 3 commits into from
Jun 23, 2022

Conversation

brews
Copy link
Member

@brews brews commented Jun 22, 2022

Add simple github-actions workflow to test code with flake8 and pytest using the latest python version.

Note, this does not use the existing tox configs to avoid having to deal with testing and dependencies in different python versions. This just installs stuff with pip on a recent Python 3.x release and does unit tests.

This PR also makes several changes to the requirements_*.txt files. Resolving conflicting package specs, pins, etc, such that the package can build automatically in CI.

Close #34.

@brews brews added the bug label Jun 22, 2022
@brews brews self-assigned this Jun 22, 2022
@brews
Copy link
Member Author

brews commented Jun 22, 2022

Note this drops the pins on xarray, and does not test on Python 2.7 (which I'm hoping we can drop?). Both of these points might be relevant to #25.

Not sure how others feel about that.

@brews brews changed the title Draft: Add simple github-actions workflow to test code Add simple github-actions workflow to test code Jun 22, 2022
@brews brews requested a review from delgadom June 22, 2022 23:14
@brews brews merged commit ecdd7db into ClimateImpactLab:master Jun 23, 2022
@brews brews deleted the add_ghactions_tests branch June 23, 2022 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swap out Travis CI for Github Actions, enable testing on PRs
2 participants