Add UT for loading datasets from files #20
Workflow file for this run
This file contains hidden or 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 | |
# 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 |