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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sh text eol=lf
2+
*.jsonlines text eol=lf

.github/workflows/app-tests.yaml

Lines changed: 13 additions & 11 deletions
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:

src/pyproject.toml

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy