Closed debeshmandal closed 4 years ago
Here is an example of what the GitHub Actions look like:
Thanks a lot for the PR Debesh. I don't know much about actions but I'll try to understand them better asap.
Quick question: can't we use make test_quick
(which is a target that runs all the quick_input
files) instead of the custom bash script you wrote?
Sorry, I did not realise this - I have changed it to use make_test now - and will shortly remove the shell script
I have implemented a simple set of GitHub Actions to automatically build and run some scripts each time there are updates to the code.
Hopefully, the 2 different jobs should run as part of this PR (if they don't then they should in a future PR)
I am very open to any suggestions or changes in the testing structure.
Summary
.github/workflows
directory - all.yml
files will be parsed and run by GitHub.github/workflows/build-linux.yml
- builds oxDNA without CUDA (runs on all commits).github/workflows/test-linux.yml
- builds oxDNA without CUDA and runs all of thequick_input
files in the testing folder (this is populated manually at the moment) (only runs on PRs because it takes more time)ci
directory - a directory that contains CI scripts made for the GitHub Actions runnersci/oxDNA-verify_build.sh
- runs a quick simulation to check that oxDNA builds properlyci/oxDNA-quick_input.sh
- runs all of thequick_input
input files in thetest
directory (currently populated manually)Outlook
I hope that this demonstrates some of the basics of doing CI (it is quite simple and has a lot of customisability). Here are my plans for the next steps:
README.md
- e.g.find
to find all of thequick_input
input files)pytest
jobs to verify the building and testing ofoxpy
pytest
has been implemented, look at testing for code coveragemacos-latest
andwindows-latest
images