From 771a7208021058cd85fecf40c07d408012ac964a Mon Sep 17 00:00:00 2001 From: jeffery Date: Fri, 3 Mar 2023 18:49:05 +0800 Subject: [PATCH] add github action --- .github/workflows/make_test_ebook.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/make_test_ebook.yaml diff --git a/.github/workflows/make_test_ebook.yaml b/.github/workflows/make_test_ebook.yaml new file mode 100644 index 0000000..55a40e9 --- /dev/null +++ b/.github/workflows/make_test_ebook.yaml @@ -0,0 +1,21 @@ +name: Pull Request +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + + testing: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + cache: 'pip' # caching pip dependencies + - run: pip install -r requirements.txt + - run: python3 make.py --book_name test_books/animal_farm.epub --no_limit --test + \ No newline at end of file