참고소스 수정본
This commit is contained in:
29
참고/guardrails-main/.github/workflows/install_from_hub.yml
vendored
Normal file
29
참고/guardrails-main/.github/workflows/install_from_hub.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Install from Hub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- guardrails/**
|
||||
- pyproject.toml
|
||||
workflow_dispatch: # This enables manual triggering
|
||||
|
||||
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
|
||||
with:
|
||||
python-version: 3.13.x
|
||||
- name: pip install from main
|
||||
run: pip install git+https://github.com/guardrails-ai/guardrails.git@main
|
||||
- name: Install PII validator
|
||||
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
|
||||
Reference in New Issue
Block a user