Skip to content

Commit

Permalink
fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
pyprism committed Jul 15, 2024
1 parent 7cd6cbd commit 1ca4d4d
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,28 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Set environment variables
run: |
echo "SECRET_KEY=xyz1234567890qwerty" >> $GITHUB_ENV
echo "DEBUG=False" >> $GITHUB_ENV
echo "ALLOWED_HOSTS=localhost,127.0.0.1" >> $GITHUB_ENV
echo "TIMEZONE=Asia/Dhaka" >> $GITHUB_ENV
echo "DB_NAME=diary" >> $GITHUB_ENV
echo "DB_PASSWORD=hiren" >> $GITHUB_ENV
echo "DB_USER=hiren" >> $GITHUB_ENV
echo "DB_HOST=postgres" >> $GITHUB_ENV
- name: Test with pytest
run: pytest -vv
env:
SECRET_KEY: "xyz1234567890qwerty"
DEBUG: "False"
ALLOWED_HOSTS: 'localhost', '127.0.0.1'
TIMEZONE: "Asia/Dhaka"
DB_NAME: "diary",
DB_PASSWORD: "hiren",
DB_USER: "hiren",
DB_HOST: "postgres"
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEBUG: ${{ env.DEBUG }}
ALLOWED_HOSTS: ${{ env.ALLOWED_HOSTS }}
TIMEZONE: ${{ env.TIMEZONE }}
DB_NAME: ${{ env.DB_NAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_USER: ${{ secrets.DB_USER }}
DB_HOST: ${{ env.DB_HOST }}



0 comments on commit 1ca4d4d

Please sign in to comment.