Skip to content

Commit

Permalink
github actions python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jun 25, 2024
1 parent e359f37 commit ae6ab8c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit ae6ab8c

Please sign in to comment.