Skip to content

ZenGuard CI

ZenGuard CI #6084

name: ZenGuard CI
on:
push:
branches:
- '**' # Matches any branch
workflow_dispatch:
schedule:
- cron: "*/59 * * * *"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: poetry
cache-dependency-path: poetry.lock
- run: poetry install
- run: echo "Done with setup"
- name: Set API Key
env:
ZEN_API_KEY: ${{ secrets.ZEN_API_KEY }}
run: echo "ZEN_API_KEY=${ZEN_API_KEY}" >> $GITHUB_ENV
- name: Set OpenAI API Key
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: echo "OPENAI_API_KEY=${OPENAI_API_KEY}" >> $GITHUB_ENV
- name: Run E2E tests
run: poetry run pytest
- run: echo "Done with end-to-end"