Add nightly CI which runs sanitizers #1333
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python API CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
run-tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.9"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install OpenBLAS | |
run: sudo apt install libopenblas-dev | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Print Python version | |
run: | | |
which python | |
which pip | |
python --version | |
- name: Build and test python | |
run: | | |
pip install .[test] | |
cd apis/python | |
pytest -n logical --durations=0 | |
# TODO: fix editable on linux | |
#pip uninstall -y tiledb.vector_search | |
#pip install -e . | |
#pytest | |
pip install -r test/ipynb/requirements.txt | |
export TILEDB_REST_TOKEN=$TILEDB_CLOUD_HELPER_VAR | |
pytest -n logical --durations=0 --nbmake test/ipynb | |
env: | |
TILEDB_CLOUD_HELPER_VAR: ${{ secrets.TILEDB_CLOUD_HELPER_VAR }} | |
shell: bash -el {0} | |
- name: Check tiledb-vector-search version | |
run: | | |
python -c "from tiledb.vector_search.version import version; print(version)" |