From 74622c78a98d1d80a7b2ed9ba47909e80493b2fd Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Fri, 13 Jan 2023 12:01:54 +0100 Subject: [PATCH] Use github actions secret for to pass variables for tests --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cde5719..f32c6b5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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