plano/.github/workflows/model-server-tests.yml
Salman Paracha 708fa15a9b
HR agent demo (#206)
* commiting my hr_agent branch

* updating the HR agent config

* pushing to remote

* fix hr agent

* committing to merge with main

* updating to merge from main

* updating the demo and model-server-tests to pull from poetry

* updating the poetry.lock files

* updating based on feedback

* updated sysmte prompt for hr_agent

---------

Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
Co-authored-by: Adil Hafeez <adil@katanemo.com>
2024-10-23 14:32:40 -07:00

44 lines
1.2 KiB
YAML

name: Run Model Server tests
on:
push:
branches:
- main # Run tests on pushes to the main branch
pull_request:
branches:
- main # Run tests on pull requests to the main branch
jobs:
test:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code from your repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python (specify the version)
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10" # Adjust to your Python version
# Step 3: Install Poetry
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
# Step 4: Install dependencies using Poetry
- name: Install dependencies
run: |
cd model_server
poetry install
# Step 5: Set PYTHONPATH and run tests
- name: Run model server tests with pytest
env:
PYTHONPATH: model_server # Ensure the app's path is available
run: |
cd model_server
poetry run pytest --maxfail=5 --disable-warnings