Design a GitHub Actions workflow that runs unit tests and deploys a Docker image to a registry on push.