I refer to an example script of docker official, then add a test process to the CI. The current process is:
build image -> pytest in container -> push to hub
I added a test script(tests/ci_test.sh) to reference it conveniently in CI to execute the test process.
The image we build only contains the minimum data needed for running, so when testing in the container, I actively mounted the test data to use, but don't worry that it has no effect on the image itself.
related #19
I refer to an example script of docker official, then add a test process to the CI. The current process is:
I added a test script(
tests/ci_test.sh
) to reference it conveniently in CI to execute the test process.The image we build only contains the minimum data needed for running, so when testing in the container, I actively mounted the test data to use, but don't worry that it has no effect on the image itself.