mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 17:14:18 +01:00
36 lines
932 B
YAML
36 lines
932 B
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test_level:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
group: [0, 1, 2]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
- name: Prepare environment
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install wheel
|
|
pip install --no-cache-dir ".[full,test]"
|
|
pip install pytest
|
|
pip install pytest-split
|
|
- name: Test
|
|
id: test
|
|
run: |
|
|
pytest -vs test/test_generator.py::test_generation_level_${{ matrix.group }}
|
|
timeout-minutes: 10
|
|
env:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
SCENEX_API_KEY: ${{ secrets.SCENEX_API_KEY }}
|
|
WHISPER_API_KEY: ${{ secrets.WHISPER_API_KEY }}
|