Skip to content

Commit

Permalink
Merge pull request #406 from dyashuni/add_tests_to_ci
Browse files Browse the repository at this point in the history
Add cpp tests to ci
  • Loading branch information
yurymalkov committed Aug 28, 2022
2 parents 0fc42b0 + 74bf4a3 commit e97b37c
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: HNSW CI
on: [push, pull_request]

jobs:
test:
test_python:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -20,3 +20,31 @@ jobs:

- name: Test
run: python -m unittest discover --start-directory python_bindings/tests --pattern "*_test*.py"

test_cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Build
run: |
mkdir build
cd build
cmake ..
make
- name: Prepare test data
run: |
pip install numpy
cd examples
python update_gen_data.py
- name: Test
run: |
cd build
./searchKnnCloserFirst_test
./test_updates
./test_updates update

0 comments on commit e97b37c

Please sign in to comment.