Skip to content

Commit 0732a23

Browse files
committed
Better windows support
1 parent 7da549c commit 0732a23

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sh text eol=lf
2+
*.jsonlines text eol=lf

Diff for: .github/workflows/app-tests.yaml

+13-11
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: ["ubuntu-20.04"]
16+
os: ["ubuntu-latest", "macos-13", "macos-latest-xlarge", "windows-latest"]
1717
python_version: ["3.10", "3.11", "3.12"]
18-
services:
19-
postgres:
20-
image: pgvector/pgvector:pg16
21-
env:
22-
POSTGRES_USER: admin
23-
POSTGRES_PASSWORD: postgres
24-
ports:
25-
- 5432:5432
26-
# needed because the postgres container does not provide a healthcheck
27-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
18+
exclude:
19+
- os: macos-latest-xlarge
20+
python_version: "3.10"
2821
steps:
2922
- uses: actions/checkout@v4
23+
- name: Check for MacOS Runner
24+
if: matrix.os == 'macos-latest-xlarge'
25+
run: brew install postgresql@14
26+
- name: Setup postgres
27+
uses: ikalnytskyi/action-setup-postgres@v6
28+
with:
29+
username: admin
30+
password: postgres
31+
database: postgres
3032
- name: Setup python
3133
uses: actions/setup-python@v5
3234
with:

Diff for: src/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Create a relecloud demo application with fastapi and postgres-fle
55
dependencies = [
66
"fastapi",
77
"gunicorn",
8-
"uvicorn[standard]",
8+
"uvicorn",
99
"python-dotenv",
1010
"environs",
1111
"azure-identity",

0 commit comments

Comments
 (0)