Skip to content

Commit

Permalink
ci: more test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 committed Mar 10, 2023
1 parent e6e4916 commit dfcf078
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/make_test_ebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfcf078

Please sign in to comment.