2727 strategy :
2828 fail-fast : false
2929 matrix :
30- os : ["ubuntu-latest", "windows-latest", "macos-latest-xlarge", "macos-13" ]
31- python_version : ["3.10", "3.11", "3.12" ]
30+ os : ["ubuntu-latest"]
31+ python_version : ["3.10"]
3232 exclude :
3333 - os : macos-latest-xlarge
3434 python_version : " 3.10"
@@ -41,29 +41,35 @@ jobs:
4141 if : matrix.os == 'windows-latest'
4242 shell : cmd
4343 run : .github\workflows\install-pgvector.bat
44- - name : Install PostgreSQL development libraries
45- if : matrix.os == 'ubuntu-latest'
46- run : |
47- sudo apt update
48- sudo apt install postgresql-server-dev-14
4944 - name : Setup postgres
45+ if : matrix.os == 'macos-latest-xlarge'
5046 uses : ikalnytskyi/action-setup-postgres@v6
5147 with :
5248 username : admin
5349 password : postgres
5450 database : postgres
5551
56- - name : Install pgvector on MacOS/Linux using install-pgvector.sh
52+ - name : Install pgvector
5753 if : matrix.os != 'windows-latest'
5854 run : |
5955 sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
6056 sudo apt-get install postgresql-14-pgvector
6157
58+ - name : Start postgres
59+ run : sudo systemctl start postgresql
60+
61+ - name : Set password for postgres user
62+ run : sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'root'"
63+
64+ - name : Create vector extension
65+ run : sudo -u postgres psql -c 'CREATE EXTENSION vector'
66+
6267 - name : Setup python
6368 uses : actions/setup-python@v5
6469 with :
6570 python-version : ${{ matrix.python_version }}
6671 architecture : x64
72+
6773 - name : Install dependencies
6874 run : |
6975 python -m pip install -r requirements-dev.txt
0 commit comments