Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 committed Mar 10, 2023
1 parent cbe165d commit 61c0e75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/make_test_ebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- 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
uses: actions/setup-python@v4
with:
Expand All @@ -40,13 +36,14 @@ jobs:
- 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
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/animal_farm.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
with:
name: epub_output
path: "test_books/${{ env.EPUB_FILENAME_BASE }}_bilingual.epub"
path: "test_books/lemo_bilingual.epub"

0 comments on commit 61c0e75

Please sign in to comment.