mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
updating the demo and model-server-tests to pull from poetry
This commit is contained in:
parent
6a72cb45b7
commit
51259b393a
3 changed files with 16 additions and 10 deletions
18
.github/workflows/model-server-tests.yml
vendored
18
.github/workflows/model-server-tests.yml
vendored
|
|
@ -23,16 +23,22 @@ jobs:
|
|||
with:
|
||||
python-version: "3.10" # Adjust to your Python version
|
||||
|
||||
# Step 3: Install dependencies (from requirements.txt or Pipfile)
|
||||
# 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
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt # Or use pipenv install
|
||||
pip install pytest
|
||||
poetry install
|
||||
|
||||
# Step 4: Set PYTHONPATH and run tests
|
||||
# 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
|
||||
PYTHONPATH=. pytest --maxfail=5 --disable-warnings
|
||||
poetry run pytest --maxfail=5 --disable-warnings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue