Skip to content

Commit

Permalink
update docker-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BirchKwok committed Apr 26, 2024
1 parent 7a7ff8b commit 2fc7bd9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ on:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: '3.12'
python-version: ${{ matrix.python-version }}

- name: Build Docker image
run: docker build -t ghcr.io/birchkwok/minvectordb/minvectordb:latest .
Expand All @@ -33,6 +39,7 @@ jobs:
python -m pip install flake8 pytest numba torch
$reqFile = "requirements.txt"
if (Test-Path $reqFile) { pip install -r $reqFile }
shell: pwsh

- name: Run tests
run: pytest test/docker_tests/
Expand Down

0 comments on commit 2fc7bd9

Please sign in to comment.