adda-team / adda

ADDA - light scattering simulator based on the discrete dipole approximation
GNU General Public License v3.0
97 stars 57 forks source link

Implement testing in GitHub Actions #316

Open nikosavola opened 2 years ago

nikosavola commented 2 years ago

Is your feature request related to a problem? Please describe.

Tests are not run automatically on commits, or tags/versions for that matter. This would better see if bugs are introduced.

Describe the solution you'd like

Implement GitHub Actions workflow compiling from source, and subsequently running the tests. This should be possible for Ubuntu, macOS, and Windows.

nikosavola commented 2 years ago

I'm a bit confused about the tests, do they currently require some previous version to compare to? Additionally, is it enough to compile everything with:

cd src
make
make seq OPTIONS=SPARSE
make mpi OPTIONS=SPARSE

and then run the tests like:

cd tests/2exec
test_all cross all
myurkin commented 2 years ago

Niko, thanks for creating this issue. We have been thinking about it for some time, the related issues are #6, #114, #282 . To sum up, here are the main concerns:

To conclude, it would be great if you can make any working prototype of GitHub Actions. And let me know, if you have further questions or ideas.

myurkin commented 2 years ago

And I think that any simple test is better than none. So the simplest would be

<install some packages, at least fftw>
cd src/
make seq
cd ../tests/2exec
./comp2exec seq

but the problem with previous binary remains.