From 193424f6118579947429c5185580b9ec50fb3b0f Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Tue, 25 Jun 2024 20:13:59 +0530 Subject: [PATCH] github actions python tests --- .github/workflows/python-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 94073d2f2..f5c639692 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -44,15 +44,16 @@ jobs: ports: # Maps tcp port 6379 on service container to the host - 6379:6379 - steps: - name: Increase max_connections run: | docker exec -i postgres bash << EOF sed -i -e 's/max_connections = 100/max_connections = 10000/' /var/lib/postgresql/data/postgresql.conf - EOF \ - && docker restart my_postgres_container \ - && sleep 5 + EOF + steps: + - name: Restart postgres + run: | + docker restart --time 0 my_postgres_container && sleep 5 - uses: actions/checkout@v4 # with: