Skip to content

Commit 670b83e

Browse files
committed
Fix CI and mypy
1 parent 36d54c6 commit 670b83e

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/app-tests.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
os: ["ubuntu-latest", "macos-latest-xlarge", "macos-13", "windows-latest"]
30+
os: ["ubuntu-latest", "macos-26", "windows-latest"]
3131
python_version: ["3.10", "3.11", "3.12"]
32-
exclude:
33-
- os: macos-latest-xlarge
34-
python_version: "3.10"
3532
env:
3633
UV_SYSTEM_PYTHON: 1
3734
POSTGRES_HOST: localhost
@@ -43,15 +40,12 @@ jobs:
4340
- uses: actions/checkout@v4
4441

4542
- name: (MacOS) Install postgreSQL and pgvector using brew
46-
if: matrix.os == 'macos-13' || matrix.os == 'macos-latest-xlarge'
43+
if: matrix.os == 'macos-26'
4744
run: |
48-
brew install postgresql@14
49-
brew link --overwrite postgresql@14
45+
brew install postgresql@18
46+
brew link --overwrite postgresql@18
5047
brew install pgvector
51-
# pgvector installs into the default PostgreSQL, copy extension files to postgresql@14
52-
cp /opt/homebrew/share/postgresql/extension/vector* /opt/homebrew/share/postgresql@14/extension/
53-
cp /opt/homebrew/lib/postgresql/vector.dylib /opt/homebrew/lib/postgresql@14/vector.dylib 2>/dev/null || true
54-
brew services start postgresql@14 && sleep 1
48+
brew services start postgresql@18 && sleep 1
5549
createuser -s ${{ env.POSTGRES_USERNAME }}
5650
psql -d postgres -c "ALTER USER ${{ env.POSTGRES_USERNAME }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
5751
psql -d postgres -c 'CREATE EXTENSION vector'

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def mock_acreate(*args, **kwargs):
175175
def mock_openai_chatcompletion(monkeypatch_session):
176176
class AsyncResponseEventIterator:
177177
def __init__(self, answer: str):
178-
self.events = []
178+
self.events: list = []
179179
# Split at << to simulate chunked responses
180180
if answer.find("<<") > -1:
181181
parts = answer.split("<<")

0 commit comments

Comments
 (0)