{"repo":"filipsnastins/testcontainers-github-actions","free":true,"listed":false,"github":"https://github.com/filipsnastins/testcontainers-github-actions","clone":"git clone https://github.com/filipsnastins/testcontainers-github-actions.git","description":"An example of running Testcontainer tests in CI pipelines.","language":"Python","stars":19,"topics":["ci","docker","end-to-end-testing","github-actions","integration-testing","python","testcontainers"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"testcontainers-github-actions An example of how to run Testcontainers in CI pipelines. This example is using GitHub Actions, but the same ideas apply to other CI pipeline runners too. Based on tomodachi-testcontainers and testcontainers-python. - testcontainers-github-actions - Running Testcontainer tests in CI pipeline - 1. Run tests directly on the CI server - 2. Run tests from inside a Docker container - Resources - Development Running Testcontainer tests in CI pipeline To run Testcontainers in the CI pipeline, you'll need a container runtime installed on the CI server (GitHub Actions, Jenkins etc.). That's pretty much it! Running Testcontainers in the CI shouldn't be much different from running them locally. This example is using GitHub Actions, where the ubuntu-latest image has Docker Engine pre-installed, so no extra setup is needed. Generally there're could be (probably there are more!) two approaches for running tests in CI pipelines: 1. Run tests directly on the CI server Install programming language runtime and dependencies on the CI server, and run the tests directly on the CI server too. This approach example pipeline is in .github/workflows/build-and-test--on-ci-server.yml - That's very similar to how tests are run on a local machine. - This works really well with GitHub Actions, because after the workflow is finished, CI server is discarded and all the installed dependencies are removed, so the next workflow run starts from a clean state. - A downside for this a","default_branch":null,"files":null,"tree":[],"storefront":"/r/filipsnastins","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/filipsnastins/testcontainers-github-actions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}