From 568ffe927d7e445430a396e3ee9dc3f87b515739 Mon Sep 17 00:00:00 2001 From: Martin Hoyer Date: Thu, 15 Aug 2024 19:10:34 +0200 Subject: [PATCH] Switching to services>redis in gh workflow --- .github/workflows/test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index adedbe1..c63b6f6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,12 @@ jobs: matrix: python-version: [ "3.10", "3.12" ] + services: + redis: + image: redis:latest + ports: + - 6379/tcp + steps: - name: Check out code @@ -41,13 +47,8 @@ jobs: - name: Create Podman pod run: | - podman pod create --name tmt-web-pod -p 8000:8000 -p 6379:6379 || true + podman pod create --name tmt-web-pod -p 8000:8000 || true # I don't even know, now it threw "docker://k8s.gcr.io/pause:3.5: Requesting bear token: invalid status code from registry 404" - # Exposing redis port as well for test_api.py::TestCelery::test_basic_test_request - - - name: Start Redis container - run: | - podman run -d --pod tmt-web-pod --name redis redis:latest - name: Start Celery container run: |