Build a docker image to use for testing in Github Actions
Closed this issue · 1 comments
gonuke commented
You have successfully made a dockerfile that generates a docker image that can be used locally for testing.
This step is to make a dockerfile that generates a docker image that installs all the dependencies and stops short of actually running the tests. Then you push this docker image to the Github Container Registry and then use that docker image, instead of ubuntu-latest
to run your tests, and no longer need to install numpy
, pytest
, coverage
.
- write a new Dockerfile
- write a new action that will build and push this docker image when the Dockerfile changes
- change existing action to use the new docker image