Skip to content

Commit

Permalink
gha: install caikit-nlp-client in a virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrifiro committed Oct 16, 2024
1 parent c536a76 commit 3c456c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,15 @@ jobs:
- name: Install caikit-nlp-client
run: |
python -m venv .venv
source .venv/bin/activate
pip install caikit-nlp-client
- name: Perform test inference (http)
run: |
source .venv/bin/activate
export ISVC_URL="$(oc get isvc ${ISVC_NAME} -o jsonpath='{.status.components.predictor.url}')"
export ISVC_HOSTNAME=$(echo $ISVC_URL | cut -d/ -f3-)
echo "Querying ISVC at: ${ISVC_URL}"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/kserve-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,15 @@ jobs:
- name: Install caikit-nlp-client
run: |
python -m venv .venv
source .venv/bin/activate
pip install caikit-nlp-client
- name: Perform test inference (http)
run: |
source .venv/bin/activate
export ISVC_URL="$(oc get isvc ${ISVC_NAME} -o jsonpath='{.status.components.predictor.url}')"
export ISVC_HOSTNAME=$(echo $ISVC_URL | cut -d/ -f3-)
echo "Querying ISVC at: ${ISVC_URL}"
Expand Down
3 changes: 3 additions & 0 deletions test/compose/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ fi

docker compose up -d

python -m venv .env
source .venv/bin/activate

pip install caikit-nlp-client

echo -e "\n=== Testing endpoints..."
Expand Down

0 comments on commit 3c456c3

Please sign in to comment.