ZenGuard CI #6033
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
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" |