Skip to content

Testing CI #14

@atteggiani

Description

@atteggiani

It would be great to have some unit tests that could be run as part of CI.

We could implement unit-testing for the helper functions, and a more general test to check that different input files (different location, different size, anything else that might change in the input file) matches the expected output files.

Running any test code on GitHub will require creating a test (conda) environment, which requires a list of dependencies and versions. An issue with this might arise due to possible mismatch between this test environment and the one used when running the model on NCI (e.g. hh5's conda environment).
There could be solutions to this but they need to be discussed.

An alternative solution could be running tests remotely on NCI.
This would solve any potential environment mismatch problem and may be required anyway (depending on the minimum size of testing file we can achieve).
Could we run CI on GitHub that executes tests remotely on NCI? Could this be a feasible solution?

This issue will likely be split in multiple separate issues.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress 🏗️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions