Skip to content

Commit

Permalink
Switching to services>redis in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Aug 15, 2024
1 parent 7f171a7 commit 568ffe9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 568ffe9

Please sign in to comment.