mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
fix: test
This commit is contained in:
parent
cbe165df19
commit
61c0e75570
11
.github/workflows/make_test_ebook.yaml
vendored
11
.github/workflows/make_test_ebook.yaml
vendored
@ -16,10 +16,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Get epub filename
|
|
||||||
run: |
|
|
||||||
EPUB_FILENAME_BASE=$(git log --diff-filter=A --name-only --pretty=format: | grep -E "^test_books/.*\.epub$" | head -n 1 | xargs -0 -I {} basename "{}" | sed 's/\.epub//')
|
|
||||||
echo "EPUB_FILENAME_BASE=$EPUB_FILENAME_BASE" >> $GITHUB_ENV
|
|
||||||
- name: install python 3.9
|
- name: install python 3.9
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@ -40,8 +36,8 @@ jobs:
|
|||||||
- name: make openai key ebook test
|
- 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/lemo.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/animal_farm.epub" --no_limit --test --test_num 5 --language ja --model gpt3
|
||||||
|
|
||||||
|
|
||||||
- name: Rename and Upload ePub
|
- name: Rename and Upload ePub
|
||||||
@ -49,4 +45,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: epub_output
|
name: epub_output
|
||||||
path: "test_books/${{ env.EPUB_FILENAME_BASE }}_bilingual.epub"
|
path: "test_books/lemo_bilingual.epub"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user