Skip to content

Commit

Permalink
Added env variables and pytest for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GetRohitansh committed Sep 8, 2023
1 parent fd46b98 commit 0bb3f4d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@ on:
# Each step is either a shell script that will be executed, or an action that will be run.
# Steps are executed in order and are dependent on each other.
# Since each step is executed on the same runner, you can share data from one step to another.

jobs:
job1:
env:
# Database Environment Variables
DATABASE_HOSTNAME: localhost
DB_PASSWORD: password123
DATABASE_PORT: 5432
DATABASE_NAME: fastapi
DB_USERNAME: postgres

# Authorization Environment Variables
SECRET_KEY: 09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: 30

runs-on: ubuntu-latest
steps:
- name: pulling git repo
Expand All @@ -32,3 +44,8 @@ jobs:

- name: install all dependencies
run: pip install -r requirements.txt

- name: test with pytest
run: |
pip install pytest
pytest

0 comments on commit 0bb3f4d

Please sign in to comment.