Spaces:
Runtime error
Runtime error
| name: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| environment: secrets | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| - name: black linter | |
| uses: psf/black@stable | |
| with: | |
| options: "--check --diff --line-length 120" | |
| - name: isort | |
| run: | | |
| pip install isort | |
| isort --profile black --check-only . | |
| - name: unit tests | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip install -e . | |
| pytest | |