Closed ivalaginja closed 4 years ago
Aaaand we have passing tests. In later work, we can focus on writing more extensive and more detailed tests, as well as defining the testing suite better (which flake8 tests, what OS, etc).
We also might consider to change the settings of the repository such that merging is only allowed if all tests pass (this will still allow overwriting by an admin) @hrwakeford
Replacement for #86 since that one was forcibly deleted while working on #49.
Working on issue #28 to set up CI. Since we have an environment.yml file to use with Conda, I used this open PR to GitHub Actions starter-workflows as a template: https://github.com/actions/starter-workflows/pull/197/files
I also used this link for rough guidance: https://medium.com/swlh/automate-python-testing-with-github-actions-7926b5d8a865
I adapted the package name and the top part where it defines when it should run the test, setting it to run a test each time there is an update to a PR going into master or develop. And I reduced the python versions to 3.6 and 3.7 only.