Skip to content

LLM Complete Guide update #3

LLM Complete Guide update

LLM Complete Guide update #3

name: Staging Trigger LLM-COMPLETE
on:
pull_request:
types: [opened, synchronize]
branches: [staging, main]
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-staging-workflow:
runs-on: ubuntu-dind-runners
env:
ZENML_HOST: ${{ secrets.ZENML_HOST }}
ZENML_API_KEY: ${{ secrets.ZENML_API_KEY }}
ZENML_STAGING_STACK: 51a49786-b82a-4646-bde7-a460efb0a9c5
ZENML_GITHUB_SHA: ${{ github.event.pull_request.head.sha }}
ZENML_GITHUB_URL_PR: ${{ github.event.pull_request._links.html.href }}
ZENML_DEBUG: true
ZENML_ANALYTICS_OPT_IN: false
ZENML_LOGGING_VERBOSITY: INFO
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install requirements
run: |
pip3 install -r requirements.txt
zenml integration install gcp -y
- name: Connect to ZenML server
run: |
zenml connect --url $ZENML_HOST --api-key $ZENML_API_KEY
- name: Set stack (Staging)
if: ${{ github.base_ref == 'staging' }}
run: |
zenml stack set ${{ env.ZENML_STAGING_STACK }}
- name: Run pipeline (Staging)
if: ${{ github.base_ref == 'staging' }}
run: |
python run.py --rag --evaluation --no-cache