ci: more test

This commit is contained in:
yihong0618 2023-03-10 15:11:12 +08:00
parent e6e4916ac4
commit dfcf078028

View File

@ -31,12 +31,19 @@ jobs:
black . --check
- name: install python requirements
run: pip install -r requirements.txt
- name: make test ebook
- name: make normal ebook test using google translate
run: |
python3 make_book.py --book_name "test_books/Liber_Esther.epub" --no_limit --test --test_num 10 --model google --translate-tags div,p
python3 make_book.py --book_name "test_books/Liber_Esther.epub" --no_limit --test --test_num 20 --model google
- name: make openai key ebook test
if: env.OPENAI_API_KEY != null
run: |
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 5 --language zh-hans
python3 make_book.py --book_name "test_books/${{ env.EPUB_FILENAME_BASE}}.epub" --no_limit --test --test_num 5 --language ja --model gpt3
- name: Rename and Upload ePub
if: env.OPENAI_API_KEY != null
uses: actions/upload-artifact@v2