From 8281a7309a4d270bfc80893709226902e512b3ed Mon Sep 17 00:00:00 2001 From: Caleb Hattingh Date: Fri, 29 Mar 2024 18:50:59 +0100 Subject: [PATCH] Fix tests add GitHub ci (#36) * Fix tests and add github CI * Add github token for coveralls * Update README --- README.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 8409e4f..13f11a8 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,5 @@ - -.. image:: https://travis-ci.org/cjrh/dockerctx.svg?branch=master - :target: https://travis-ci.org/cjrh/dockerctx +.. image:: https://github.com/cjrh/dockerctx/workflows/Python%20application/badge.svg + :target: https://github.com/cjrh/dockerctx/actions .. image:: https://coveralls.io/repos/github/cjrh/dockerctx/badge.svg?branch=master :target: https://coveralls.io/github/cjrh/dockerctx?branch=master @@ -11,10 +10,13 @@ .. image:: https://img.shields.io/github/tag/cjrh/dockerctx.svg :target: https://github.com/cjrh/dockerctx +.. image:: https://img.shields.io/pypi/v/dockerctx.svg + :target: https://img.shields.io/pypi/v/dockerctx.svg + dockerctx ========= -`dockerctx` is a context manager for managing the lifetime of a docker container. +*dockerctx* is a context manager for managing the lifetime of a docker container. The main use case is for setting up scaffolding for running tests, where you want something a little broader than *unit tests*, but less heavily integrated than, @@ -39,7 +41,7 @@ Demo This is taken from one of the tests: -.. code-block:: python +.. code-block:: python3 import time import redis @@ -89,4 +91,3 @@ In the src, there is another, much more elaborate test which #. tears down and removes the container afterwards. .. _SQLAlchemy: http://www.sqlalchemy.org/ -