Basic Streaming and In-Memory Guard Support #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Pull Request Quality Checks | |
# Controls when the workflow will run | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: PR checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
- name: Quality Checks | |
run: | | |
python -m venv ./.venv | |
source ./.venv/bin/activate | |
make install-lock; | |
make install-dev; | |
curl https://raw.githubusercontent.com/guardrails-ai/guardrails-api-client/main/service-specs/guardrails-service-spec.yml -o ./open-api-spec.yml | |
npx @redocly/cli bundle --dereferenced --output ./open-api-spec.json --ext json ./open-api-spec.yml | |
make qa; | |
## | |
## NOTE: | |
## The below checks for a file named .version-change-type that is used to automatically increment the version number during publish flows. | |
## It also checks for changes in a file called RELEASENOTES.md that are used to auto-maintain a rolling CHANGELOG. | |
## This is commented out for now until we finalize what the publish/release flow will look like. | |
## | |
# changeType=$(<.version-change-type) | |
# if [ -z "$changeType" ]; | |
# then | |
# echo "missing file .version-change-type!" | |
# exit 1 | |
# fi | |
# echo "Checking for release notes..." | |
# git fetch origin main ${{ github.event.pull_request.base.sha }}; | |
# diff=$(git diff -U0 ${{ github.event.pull_request.base.sha }} ${{ github.sha }} RELEASENOTES.md); | |
# if [ -z "$diff" ]; then echo "Missing release notes! exiting..."; exit 1; fi |