Open Thomas-Moore-Creative opened 4 years ago
I'm happy to help with boilerplate packaging and testing if you'all need any help. See https://github.com/ioos/ioos-python-package-skeleton for some tips on what we do for IOOS packages.
As usual, thanks @ocefpaf for your generous support. I'm still very much a git noob and know very little about CI, but will have a look at the skeleton and maybe check in with you on steps to take next?
@ocefpaf - super basic question. What approach should I take to add CI to an under development repo? Do I make a branch for adding CI and then PR that to merge back to dev?
to be more clear, how do I use a "template" like https://github.com/ioos/ioos-python-package-skeleton AFTER a repo is already setup and under development. My first guess is:
git cp
commands?Or is there a smarter way? Thanks for your expertise and assistance.
There is not a smarter way. Working on a branch for that is fine. Note that you probably don't need everything in that skeleton right now. (Although as I look at the code here it is aquite advanced already!)
You'll probably need:
I would leave for later everything else, like package publishing, style and pre-commit checks, etc. Although the latter is nice to enforce as soon as possible in a project it would bring more headaches than it is worth here at the moment (a lot of unnecessary code churn).
@Thomas-Moore-Creative feel free to ping me on the PR or, if you want, let me know and I can start one for you.
@Thomas-Moore-Creative feel free to ping me on the PR or, if you want, let me know and I can start one for you.
Thanks @ocefpaf - I'll follow your advice above and then sub a PR that pings you.
back on this issue. working on this branch - https://github.com/oceanhackweek/ohw20-proj-marine-heat-waves/tree/Issue4-add-CI-and-tests to do:
test_heatwave.py
Add tests and continuous integration (CI)
This issue might best be addressed starting with getting Trond(spelling?) to give the team a tutorial.
A key outcome of extensive testing should be clarity and confidence that refactored code or package produces identical output to https://github.com/ecjoliver/marineHeatWaves