Skip to content

Commit

Permalink
Update install_from_hub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zsimjee authored Sep 25, 2024
1 parent ea90816 commit dc8613e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/install_from_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
install_from_hub:
runs-on: ubuntu-latest
env:
GUARDRAILS_API_KEY: ${{ secrets.GUARDRAILS_API_KEY }}
steps:
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -17,6 +19,8 @@ jobs:
- name: pip install from main
run: pip install git+https://github.com/guardrails-ai/guardrails.git@main
- name: Install PII validator
run: guardrails hub install hub://guardrails/detect_pii
run: |
guardrails configure --token $GUARDRAILS_API_KEY --disable-metrics --enable-remote-inferencing;
guardrails hub install hub://guardrails/detect_pii;
- name: Verify PII validator is addressable
run: echo 'from guardrails.hub import DetectPII' | python

0 comments on commit dc8613e

Please sign in to comment.