Use github actions secret for to pass variables for tests

This commit is contained in:
Thomas Rubini 2023-01-13 12:01:54 +01:00
parent b9768aa37d
commit 74622c78a9
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -16,5 +16,12 @@ jobs:
pip install -r dev-requirements.txt
- name: Run tests
env:
FLASK_SECRET: ${{SECRETS.FLASK_SECRET}}
DB_HOST: ${{SECRETS.DB_HOST}}
DB_PORT: ${{SECRETS.DB_PORT}}
DB_USER: ${{SECRETS.DB_USER}}
DB_PASSWORD: ${{SECRETS.DB_PASSWORD}}
DB_DBNAME: ${{SECRETS.DB_DBNAME}}
run: |
python -m pytest --verbose