celeritas-project / celeritas

Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
https://celeritas-project.github.io/celeritas/user/index.html
Other
58 stars 32 forks source link

Regenerate ROOT files during CI testing #1287

Closed sethrj closed 1 week ago

sethrj commented 1 week ago

This updates the Geant4 configuration file for the four-steel-slabs ROOT input used by the UrbanMsc testing so that the committed data matches the regenerated data. To ensure consistency in the future (i.e. regenerating the file won't break the tests) the CI now regenerates (but does not commit!) the files as part of testing.

I also noticed during testing that the neutron XS environment variable isn't being passed to the tests; so this fixes that and adds an additional check to fail the CI if the environment varibles are missing inside the test.