mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-07 12:05:50 +00:00
ci: more test
This commit is contained in:
parent
e6e4916ac4
commit
dfcf078028
9
.github/workflows/make_test_ebook.yaml
vendored
9
.github/workflows/make_test_ebook.yaml
vendored
@ -31,12 +31,19 @@ jobs:
|
|||||||
black . --check
|
black . --check
|
||||||
- name: install python requirements
|
- name: install python requirements
|
||||||
run: pip install -r requirements.txt
|
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
|
if: env.OPENAI_API_KEY != null
|
||||||
run: |
|
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 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
|
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
|
- name: Rename and Upload ePub
|
||||||
if: env.OPENAI_API_KEY != null
|
if: env.OPENAI_API_KEY != null
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user