Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kaschenkkko authored Jan 27, 2024
1 parent a15a34f commit 6425678
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
tests:
runs-on: ubuntu-latest

env:
DB_HOST_TEST: ${{ secrets.DB_HOST_TEST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}

services:
postgres:
image: postgres:15.1-alpine
Expand Down Expand Up @@ -49,9 +56,3 @@ jobs:
- name: Test with Pytest (postman-script)
run: |
pytest -v restaurant_menu/tests/test_script_count_dishes_and_submenus.py
env:
DB_HOST_TEST: ${{ secrets.DB_HOST_TEST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}

0 comments on commit 6425678

Please sign in to comment.