Skip to content

Commit

Permalink
ci: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsonDev42 committed Apr 20, 2024
1 parent a91f00d commit 291c03e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pytest-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ jobs:
run: |
python -m pip install poetry
poetry install
- name: Load .env
uses: falti/[email protected]
with:
path: .env.dev
- name: Set environment variables
run: |
echo "DATABASE_URL=postgresql://mydatabaseuser:mypassword@localhost:5432/mydatabase" >> $GITHUB_ENV
set -a
source path/to/your/.env
set +a
env | grep -vE '^(_|PWD|HOME|GITHUB_)' >> $GITHUB_ENV
- name: Run tests
env:
DATABASE_URL:localhost
DATABASE_NAME:mydatabase
DATABASE_PORT:5432
DATABASE_USER:mydatabaseuser
DATABASE_PASSWORD:mypassword
run: poetry run pytest -vv

0 comments on commit 291c03e

Please sign in to comment.