Skip to content

Commit 91b6947

Browse files
authored
Merge pull request #2 from guardrails-ai/feat/gr-hub-pypi-ci
Guardrails Hub PyPi Publish CI & Dep update
2 parents d13c5bf + 4b7fdbd commit 91b6947

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to Guardrails Hub
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
setup:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Build & Deploy
14+
uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main
15+
with:
16+
guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }}
17+
validator_id: guardrails/politeness_check

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "politeness_check"
3-
version = "0.0.0"
3+
version = "0.0.1"
44
description = "This validator ensures that a generated output is polite."
55
authors = [
66
{name = "Guardrails AI", email = "[email protected]"}
@@ -10,7 +10,8 @@ readme = "README.md"
1010
requires-python = ">= 3.8.1"
1111
dependencies = [
1212
"guardrails-ai>=0.4.0",
13-
"litellm"
13+
"litellm",
14+
"guardrails-grhub-response_evaluator"
1415
]
1516

1617
[project.optional-dependencies]

0 commit comments

Comments
 (0)