msmasnadi / OPGEEv4

OPGEE v4
Other
10 stars 4 forks source link

Replace Travis CI with Github Actions #18

Closed ghost closed 1 month ago

ghost commented 1 month 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.
      2. Added a pre-commit git hook to compare the user's current conda environment to that used for py3-opgee-gh-actions.yml. The hash of that file is used to cache the env, so we want to ensure that it's appropriately up to date.
      3. Minor code tweaks