Skip to content

CI

CI #19

Workflow file for this run

name: CI
# Run on pull request, when first opened, and when approved, don't allow until the approved unit test pass
on:
pull_request:
types: [opened, reopened]
branches:
- main
pull_request_review:
types: [submitted]
branches:
- main
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version:
- "3.11"
name: Test
runs-on: ${{ matrix.os }}
env:
PYTHONPATH: "."
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pipenv
pipenv install --dev
- name: Run tests
run: |
pipenv run pytest