Skip to content

Refactor

Refactor #39

Workflow file for this run

name: Run Test
on:
push:
branches: [ "main" ]
paths:
- '**.py'
pull_request:
branches: [ "main" ]
paths:
- '**.py'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python -m pip install .
- name: Test with pytest
run: |
pytest . -v tests/
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}