Skip to content

Commit

Permalink
add genai-test command
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 30, 2024
1 parent 353df6f commit 848f457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-genai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ jobs:
- name: download ollama docker
run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
- name: run test within scripts
run: yarn test:scripts --out-summary ./summary.txt --test-delay 10
- name: Append summary.txt to $GITHUB_STEP_SUMMARY
run: |
cat packages/sample/summary.txt >> $GITHUB_STEP_SUMMARY
run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10
- name: Add comment to PR
uses: actions/github-script@v5
if: github.event_name == 'pull_request'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }}
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
- name: start ollama
if: contains(github.event.comment.body, '/genai-test')
run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
- name: run test within scripts
if: contains(github.event.comment.body, '/genai-test')
run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10
- name: Archive genai results
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 848f457

Please sign in to comment.