diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7dfba102 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: HNSW CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{matrix.os}} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + python-version: ['3.6', '3.7', '3.8', '3.9'] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Build and install + run: python -m pip install . + + - name: Test + run: python -m unittest discover --start-directory python_bindings/tests --pattern "*_test*.py" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 76f7d7d4..00000000 --- a/.travis.yml +++ /dev/null @@ -1,63 +0,0 @@ -language: python - -jobs: - include: - - name: Linux Python 3.6 - os: linux - python: 3.6 - - - name: Linux Python 3.7 - os: linux - python: 3.7 - - - name: Linux Python 3.8 - os: linux - python: 3.8 - - - name: Linux Python 3.9 - os: linux - python: 3.9 - - - name: Windows Python 3.6 - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.6.0 - - python -m pip install --upgrade pip - - python --version - env: PATH=/c/Python36:/c/Python36/Scripts:$PATH - - - name: Windows Python 3.7 - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.7.0 - - python -m pip install --upgrade pip - - python --version - env: PATH=/c/Python37:/c/Python37/Scripts:$PATH - - - name: Windows Python 3.8 - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.8.0 - - python -m pip install --upgrade pip - - python --version - env: PATH=/c/Python38:/c/Python38/Scripts:$PATH - - - name: Windows Python 3.9 - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.9.0 - - python -m pip install --upgrade pip - - python --version - env: PATH=/c/Python39:/c/Python39/Scripts:$PATH - -install: - - | - python -m pip install . - -script: - - | - python -m unittest discover --start-directory python_bindings/tests --pattern "*_test*.py"