bilingual_book_maker/.github/workflows/make_test_ebook.yaml
2023-03-03 20:50:14 +08:00

30 lines
763 B
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- name: Check formatting (black)
run: |
pip install black
black . --check
- name: install python requirements
run: pip install -r requirements.txt
- name: make test ebook
env:
OPENAI_API_KEY=: ${{ secrets.OPENAI_API_KEY }}
run: python3 make.py --book_name test_books/animal_farm.epub --no_limit --test --test_num 2