FormingWorlds / PROTEUS

Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets.
https://fwl-proteus.readthedocs.io
Apache License 2.0
12 stars 1 forks source link

Set up automated tests via Github Actions #86

Closed timlichtenberg closed 3 months ago

timlichtenberg commented 7 months ago

Optimally, all newly introduced modules and functions should be automatically tested with every pull request. We will start to continuously work these in, also for older parts of the code that are not being tested as of yet.

See https://docs.github.com/en/actions.

Connected to: FormingWorlds/PROTEUS#71, FormingWorlds/PROTEUS#83

timlichtenberg commented 7 months ago

First test for JANUS: FormingWorlds/JANUS#21

timlichtenberg commented 6 months ago

To be updated list of automated tests that need to be included:

nichollsh commented 6 months ago

For the model to be tested, there will also need to be a pipeline for configuration it via the GitHub actions framework. This might mean an action for compiling SOCRATES, and another for configuring conda (for example). These aren't physical tests, and aren't as useful, but will also need to be done.

timlichtenberg commented 6 months ago

This sounds good to me, we should do this anyway to ensure that SOCRATES can indeed by meaningfully compiled and conda configured. Any tips on that @lsoucasse and @stefsmeets?

nichollsh commented 6 months ago

On this topic, I've tried to streamline SOCRATES compilation in AGNI which requires only running two scripts. We could copy this exactly in JANUS.

lsoucasse commented 5 months ago

We now have GH actions for Janus, Socrates and Agni. Tests of the PROTEUS framework will be setup at a later stage so I move this issue to TBD.

stefsmeets commented 3 months ago

Is there any basic example script that we could reuse for this? At least as a start.