Skip to content

Commit 16af213

Browse files
authored
chore: fix python action image tag (#229)
* chore: fix python action image tag Signed-off-by: Keming <kemingyang@tensorchord.ai> * add gh token Signed-off-by: Keming <kemingyang@tensorchord.ai> --------- Signed-off-by: Keming <kemingyang@tensorchord.ai>
1 parent d0349f1 commit 16af213

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/python_check.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@ jobs:
6262
working-directory: bindings/python
6363
run: |
6464
pdm sync -G :all
65-
66-
# - name: Install Docker for macOS
67-
# if: matrix.os == 'macos-latest'
68-
# run: |
69-
# brew install docker
70-
# colima start
7165
7266
- name: Start Postgres
67+
env:
68+
GH_TOKEN: ${{ github.token }}
7369
run: |
74-
docker run --name pgvecto-rs-demo -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d tensorchord/pgvecto-rs:latest
70+
LATEST_STABLE_VERSION=$(gh release list --repo tensorchord/pgvecto.rs --exclude-drafts --exclude-pre-releases --limit 1 | awk '{print $3}')
71+
docker run --name pgvecto-rs-demo -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d tensorchord/pgvecto-rs:pg15-${LATEST_STABLE_VERSION}
7572
7673
- name: Run Tests
7774
working-directory: bindings/python

0 commit comments

Comments
 (0)