msmasnadi / OPGEEv4

OPGEE v4
Other
10 stars 4 forks source link

Set up GitHub Actions #19

Closed ghost closed 1 month ago

ghost commented 2 months ago

The primary goal is to get unit tests and coverage reporting up and running in GitHub. The workflow can be found in .github/workflows/opgee-test.yml.

Changes/updates:

  1. Added workflow file that checks out the repo, sets up some caching for pip dependencies and the conda env, runs unit tests, and reports coverage
    • Note: coverage still isn't working appropriately. Need to either investigate the codecov.io token issue or try to connect the README badges to actions artifacts
      1. Dependency updates: ran into issues where anaconda appears to include dask-expr==1.1.0 by default which caused issues with some outdated packages. Additionally, there were errors during some of the dependency steps in the workflow that were solved by updates to requirements.txt.
    • Note that these required minor updates in a few places
  2. Minor code tweaks
ghost commented 1 month ago

Also wanted to share the action run details and results. https://github.com/RMI/OPGEEv4/actions/runs/11486639749

rjplevin commented 1 month ago

I'm unsure how to review this since I'm not familiar with github actions, and this presumably runs on github rather than on my desktop.

@mbarlow-rmi, I wonder if we should schedule a time for you to walk me through it?

ghost commented 1 month ago

@rjplevin probably a good call. I'll follow up in slack to set up a time.