diff --git a/.github/workflows/make_test_ebook.yaml b/.github/workflows/make_test_ebook.yaml index 42ebbec..0cb518b 100644 --- a/.github/workflows/make_test_ebook.yaml +++ b/.github/workflows/make_test_ebook.yaml @@ -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