ML4GW / aframe

Detecting binary black hole mergers in LIGO with neural networks
MIT License
6 stars 16 forks source link

Testing infra #163

Closed EthanMarx closed 5 months ago

EthanMarx commented 5 months ago

Adds back in github workflows to run tests! There are two separate workflows to run the libs and projects tests.

  1. Libraries are simply installed with poetry and tests run with poetry run pytest
  2. Project tests are run inside project containers after the apptainer image has been built, but before it has been converted to a docker container and uploaded to the remote repository. I've configured the docker push portion of the workflow to only trigger on pushes to main, so that it is not run on pull requests.

I've added back in some tests from the old aframe that were simple to re configure here, namely the export tests. For the rest of the projects I've added dummy tests to get the workflows running. Now that we have this, I think we'll have more motivation to start writing tests. We can slowly add them back in