Update README.md #21
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: CI for GenAI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
HELIX_URL: ${{ secrets.HELIX_URL }} | |
HELIX_API_KEY: ${{ secrets.HELIX_API_KEY }} | |
jobs: | |
test-and-comment: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install helix CLI | |
run: curl -sL -O https://get.helix.ml/install.sh && bash install.sh --cli -y --helix-version 1.4.0-rc11 | |
- name: Test the helix app | |
run: helix test -f aispecs/exchangerates.yaml | |
- name: PR comment with file | |
if: always() | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
file-path: summary_latest.md | |
test-on-main: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install helix CLI | |
run: curl -sL -O https://get.helix.ml/install.sh && bash install.sh --cli -y --helix-version 1.4.0-rc11 | |
- name: Test the helix app | |
run: helix test -f aispecs/exchangerates.yaml |