v2ex / remote

Remote Worker
https://www.v2ex.com/go/dev
MIT License
80 stars 4 forks source link

Add test inside container #25

Closed luxiaba closed 2 years ago

luxiaba commented 2 years ago

related #19

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.