From dfcf0780281eb21884dc1f50f8177c57f04690d1 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Fri, 10 Mar 2023 15:11:12 +0800 Subject: [PATCH] ci: more test --- .github/workflows/make_test_ebook.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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