Skip to content

Commit

Permalink
[#55] Sync up
Browse files Browse the repository at this point in the history
  • Loading branch information
uogbuji committed Nov 30, 2023
2 parents 7decdec + 2eb8a9d commit 13d95f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
POSTGRES_USER: mock_user
POSTGRES_PASSWORD: mock_password
POSTGRES_DB: mock_db
ports: # give multiple ports for each python versionto avoid conflicts
ports: # give multiple ports for each python version to avoid conflicts
- 5433:5432
- 5432:5432

Expand Down
8 changes: 8 additions & 0 deletions test/embedding/test_pgvector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
'''
Set up a mock Postgres instance with the following commands
(make sure you don't have anything running on port 0.0.0.0:5432))):
docker pull ankane/pgvector
docker run --name mock-postgres -p 5432:5432 \
-e POSTGRES_USER=mock_user -e POSTGRES_PASSWORD=mock_password -e POSTGRES_DB=mock_db \
-d ankane/pgvector
Then run the tests with:
pytest test
or
Expand Down

0 comments on commit 13d95f7

Please sign in to comment.