Skip to content

Commit

Permalink
adding a default DB_URI for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Dec 2, 2024
1 parent 47ac3b1 commit ac39ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
- name: Run Pytest with the matrix database
run: |
export DB_URI=sqlite:///:memory:
if [[ "${{ matrix.database }}" == "postgres" ]]; then
export TEST_DB_URI=postgresql+psycopg2://postgres:pw@localhost:5432/postgres
elif [[ "${{ matrix.database }}" == "sqlite" ]]; then
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ filterwarnings = [
"ignore:typing.io is deprecated, import directly from typing instead:DeprecationWarning"
]
env = [
"DB_URI=sqlite:///:memory:",
"INITIAL_ALGORITHMS=",
]

Expand Down

0 comments on commit ac39ed9

Please sign in to comment.