Skip to content

Commit

Permalink
Merge pull request #2 from guardrails-ai/feat/gr-hub-pypi-ci
Browse files Browse the repository at this point in the history
Guardrails Hub PyPi Publish CI & Dep update
  • Loading branch information
dtam authored Oct 30, 2024
2 parents d13c5bf + 4b7fdbd commit 91b6947
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish to Guardrails Hub

on:
workflow_dispatch:
push:
branches:
- main

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Build & Deploy
uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main
with:
guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }}
validator_id: guardrails/politeness_check
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "politeness_check"
version = "0.0.0"
version = "0.0.1"
description = "This validator ensures that a generated output is polite."
authors = [
{name = "Guardrails AI", email = "[email protected]"}
Expand All @@ -10,7 +10,8 @@ readme = "README.md"
requires-python = ">= 3.8.1"
dependencies = [
"guardrails-ai>=0.4.0",
"litellm"
"litellm",
"guardrails-grhub-response_evaluator"
]

[project.optional-dependencies]
Expand Down

0 comments on commit 91b6947

Please sign in to comment.