Skip to content

Commit

Permalink
fix github action 6
Browse files Browse the repository at this point in the history
  • Loading branch information
euhoro committed Jun 18, 2024
1 parent ebda075 commit 04a1997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
docker run --name redis -d -p 6379:6379 redis
- name: Start Uvicorn server
run: |
nohup SETTINGS_MODE=text uvicorn main:app --host 127.0.0.1 --port 8000 &
sleep 5 # Wait for the server to start
SETTINGS_MODE=redis uvicorn app.main:app --host 127.0.0.1 --port 8000 &
sleep 10 # Wait for the server to start
- name: Run tests with pytest
run: |
SETTINGS_MODE=text pytest tests
Expand Down

0 comments on commit 04a1997

Please sign in to comment.