Skip to content

Commit

Permalink
updating workflow file and adding absolute import on test_predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LINSANITY03 committed Sep 22, 2024
1 parent 7902316 commit 94ee991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
run: echo "PYTHONPATH=$(pwd)/app" >> $GITHUB_ENV
- name: Run tests
run: |
pytest tests/
2 changes: 1 addition & 1 deletion tests/test_routers/test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from fastapi import FastAPI
from fastapi.testclient import TestClient
from ...routers import predict
from app.routers import predict


tf.disable_v2_behavior() # pylint: disable=no-member
Expand Down

0 comments on commit 94ee991

Please sign in to comment.