Skip to content

Commit

Permalink
Fix TEST_DATABASE_URL and install dev dependencies in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomascapek committed Dec 2, 2024
1 parent 6091e14 commit 8167e9f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
- name: Install dependencies
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
poetry install
poetry install --with=dev
- name: Run test suite
env:
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
run: |
poetry run pytest -v
78 changes: 77 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ mypy = "^0.950"

[tool.poetry.group.dev.dependencies]
flask-sqlalchemy = "^3.1.1"
psycopg2-binary = "^2.9.10"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 8167e9f

Please sign in to comment.