add interfaces and tests for nearest neighbors and embeddings #2
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 Tests | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./oxen | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install maturin | |
pip install pytest | |
pip install -e . | |
- uses: robinraju/[email protected] | |
with: | |
repository: "Oxen-AI/Oxen" | |
latest: true | |
fileName: "oxen-server-ubuntu-22.04.deb" | |
out-file-path: "oxen-server" | |
- name: Run Tests | |
run: | | |
sudo dpkg -i oxen-server/oxen-server-ubuntu-22.04.deb | |
oxen-server start & | |
pytest -s tests | |