I have a pyhon project that runs a couple of containers: nginx, uwsgi, mysql, celery, rabbitmq.
And another container to run integration tests (with chromedriver).
This all works fine as docker-compose is supported by GitHub Actions via:
name: Docker Compose Actions Workflow on: push jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set integration-test mode run: docker/setEnv.sh integration_tests - name: Build the stack run: docker-compose up --build
This builds the containers, starts them and runs the integration tests as part of the entrypoint script of the integration-tests container.
But after finishing the tests, all containers keep running, or at leasts the ones running a service such as nginx, uwsgi, celery, mysql.
How can I mark the GitHub Action (step) as successful after completing the integration tests. And make sure the containers are stopped and the action continues?