From ae6ab8c4385c6614f86bbc1e65bb3cfd60eac5fa Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Tue, 25 Jun 2024 19:35:56 +0530 Subject: [PATCH] github actions python tests --- .github/workflows/python-tests.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index ea9fe2872..eff3e7d8f 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -18,7 +18,9 @@ jobs: image: postgres:15.2 # Provide the password for postgres env: - POSTGRES_PASSWORD: postgres + POSTGRES_DB: gooey + POSTGRES_USER: postgres + POSTGRES_PASSWORD: password # Set health checks to wait until postgres has started options: >- --health-cmd pg_isready @@ -62,11 +64,19 @@ jobs: run: | pip install -U poetry pip && poetry install --only main --no-interaction - - name: Load secrets into env - uses: oNaiPs/secrets-to-env-action@v1 - with: - secrets: ${{ toJSON(secrets) }} +# - name: Load secrets into env +# uses: oNaiPs/secrets-to-env-action@v1 +# with: +# secrets: ${{ toJSON(secrets) }} - name: Test with pytest + env: + PGHOST: postgres + PGPORT: 5432 + PGDATABASE: gooey + PGUSER: postgres + PGPASSWORD: password + REDIS_URL: redis://redis:6379/0 + REDIS_CACHE_URL: redis://redis:6379/1 run: | poetry run ./scripts/run-tests.sh