-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (44 loc) · 1.27 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install mecab
run: |
sudo apt-get -y install mecab libmecab-dev
- name: install python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip" # caching pip dependencies
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- name: install all dependencies
run: |
pdm install -d
- name: Check format lint
run: |
pdm run lint
- name: Check types
run: |
pdm run typing
- name: Test
run: |
pdm run test
- name: Test building
run: |
pdm build
- name: Test Integers
run: |
pdm run python -m epubhv tests/test_epub/sanguo.epub
pdm run python -m epubhv tests/test_epub/sanguo.epub --convert s2t --punctuation auto
pdm run python -m epubhv sanguo-v-s2t.epub --h
pdm run python -m epubhv --h tests/test_epub/ --ruby # test ruby
pdm run python -m epubhv --h tests/test_epub/books/animal.epub --cantonese --ruby # ruby and cantonese