update run_model_on_data.py script #27
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 | |
- uses: robinraju/[email protected] | |
with: | |
repository: "Oxen-AI/Oxen" | |
latest: true | |
fileName: "oxen-server-ubuntu-22.04.deb" | |
out-file-path: "." | |
- uses: robinraju/[email protected] | |
with: | |
repository: "Oxen-AI/Oxen" | |
latest: true | |
fileName: "oxen-ubuntu-22.04.deb" | |
out-file-path: "." | |
- name: Install oxen-server | |
run: | | |
sudo dpkg -i /home/runner/work/oxen-release/oxen-release/oxen-server-ubuntu-22.04.deb | |
sudo dpkg -i /home/runner/work/oxen-release/oxen-release/oxen-ubuntu-22.04.deb | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install Python Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install -r requirements.txt | |
- name: Run Tests | |
run: | | |
oxen config --name "Bessie Testington" --email "[email protected]" | |
oxen-server start & | |
pytest -s tests | |