Skip to content

guarded more imports to fix #33 (#34) #89

guarded more imports to fix #33 (#34)

guarded more imports to fix #33 (#34) #89

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest build
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
run: |
pip install .[gpr]
- name: Run Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest tests