Adds event bus, support for streaming events and API usage. #7
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: Ruby | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} | |
strategy: | |
matrix: | |
ruby: | |
- '3.2.0' | |
env: | |
openai_organization_id: ${{ secrets.OPENAI_ORGANIZATION_ID }} | |
openai_api_key: ${{ secrets.OPENAI_API_KEY }} | |
openrouter_api_key: ${{ secrets.OPENROUTER_API_KEY }} | |
openrouter_referer: https://roseflow.ai | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run the default task | |
run: bundle exec rake | |
- name: Coveralls parallel | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
flag-name: run-${{ matrix.test_number }} | |
parallel: true | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@v2 |