diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 1c35cdf4..9fc7c1e0 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -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 @@ -32,3 +44,8 @@ jobs: - name: install all dependencies run: pip install -r requirements.txt + + - name: test with pytest + run: | + pip install pytest + pytest