Skip to content

Commit 2ea8503

Browse files
authored
Merge pull request #31 from Menghuan1918/dev
V0.2.5
2 parents 9e29ee2 + 6a46aa6 commit 2ea8503

File tree

15 files changed

+208
-806
lines changed

15 files changed

+208
-806
lines changed

.github/workflows/python-test-linux.yml

+100-95
Original file line numberDiff line numberDiff line change
@@ -7,118 +7,123 @@ jobs:
77
test-python-3-8:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
11-
- name: Set up Python 3.8
12-
uses: actions/setup-python@v3
13-
with:
14-
python-version: "3.8"
15-
- name: Install dependencies
16-
run: |
17-
python -m pip install --upgrade pip
18-
python -m pip install flake8 pytest
19-
python -m pip install .
20-
- name: Lint with flake8
21-
run: |
22-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
23-
- name: Test with pytest
24-
env:
25-
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
26-
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
27-
run: |
28-
pytest -s
10+
- uses: actions/checkout@v4
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: "3.8"
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
python -m pip install pytest ruff
19+
python -m pip install .
20+
- name: Lint with ruff
21+
run: |
22+
ruff check .
23+
ruff format --check
24+
- name: Test with pytest
25+
env:
26+
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
27+
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
28+
run: |
29+
pytest -s
2930
3031
test-python-3-9:
3132
needs: test-python-3-8
3233
runs-on: ubuntu-latest
3334
steps:
34-
- uses: actions/checkout@v4
35-
- name: Set up Python 3.9
36-
uses: actions/setup-python@v3
37-
with:
38-
python-version: "3.9"
39-
- name: Install dependencies
40-
run: |
41-
python -m pip install --upgrade pip
42-
python -m pip install flake8 pytest
43-
python -m pip install .
44-
- name: Lint with flake8
45-
run: |
46-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
47-
- name: Test with pytest
48-
env:
49-
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
50-
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
51-
run: |
52-
pytest -s
35+
- uses: actions/checkout@v4
36+
- name: Set up Python 3.9
37+
uses: actions/setup-python@v3
38+
with:
39+
python-version: "3.9"
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
python -m pip install pytest ruff
44+
python -m pip install .
45+
- name: Lint with ruff
46+
run: |
47+
ruff check .
48+
ruff format --check
49+
- name: Test with pytest
50+
env:
51+
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
52+
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
53+
run: |
54+
pytest -s
5355
5456
test-python-3-10:
5557
needs: test-python-3-9
5658
runs-on: ubuntu-latest
5759
steps:
58-
- uses: actions/checkout@v4
59-
- name: Set up Python 3.10
60-
uses: actions/setup-python@v3
61-
with:
62-
python-version: "3.10"
63-
- name: Install dependencies
64-
run: |
65-
python -m pip install --upgrade pip
66-
python -m pip install flake8 pytest
67-
python -m pip install .
68-
- name: Lint with flake8
69-
run: |
70-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
71-
- name: Test with pytest
72-
env:
73-
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
74-
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
75-
run: |
76-
pytest -s
60+
- uses: actions/checkout@v4
61+
- name: Set up Python 3.10
62+
uses: actions/setup-python@v3
63+
with:
64+
python-version: "3.10"
65+
- name: Install dependencies
66+
run: |
67+
python -m pip install --upgrade pip
68+
python -m pip install pytest ruff
69+
python -m pip install .
70+
- name: Lint with ruff
71+
run: |
72+
ruff check .
73+
ruff format --check
74+
- name: Test with pytest
75+
env:
76+
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
77+
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
78+
run: |
79+
pytest -s
7780
7881
test-python-3-11:
7982
needs: test-python-3-10
8083
runs-on: ubuntu-latest
8184
steps:
82-
- uses: actions/checkout@v4
83-
- name: Set up Python 3.11
84-
uses: actions/setup-python@v3
85-
with:
86-
python-version: "3.11"
87-
- name: Install dependencies
88-
run: |
89-
python -m pip install --upgrade pip
90-
python -m pip install flake8 pytest
91-
python -m pip install .
92-
- name: Lint with flake8
93-
run: |
94-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
95-
- name: Test with pytest
96-
env:
97-
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
98-
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
99-
run: |
100-
pytest -s
85+
- uses: actions/checkout@v4
86+
- name: Set up Python 3.11
87+
uses: actions/setup-python@v3
88+
with:
89+
python-version: "3.11"
90+
- name: Install dependencies
91+
run: |
92+
python -m pip install --upgrade pip
93+
python -m pip install pytest ruff
94+
python -m pip install .
95+
- name: Lint with ruff
96+
run: |
97+
ruff check .
98+
ruff format --check
99+
- name: Test with pytest
100+
env:
101+
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
102+
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
103+
run: |
104+
pytest -s
101105
102106
test-python-3-12:
103107
needs: test-python-3-11
104108
runs-on: ubuntu-latest
105109
steps:
106-
- uses: actions/checkout@v4
107-
- name: Set up Python 3.12
108-
uses: actions/setup-python@v3
109-
with:
110-
python-version: "3.12"
111-
- name: Install dependencies
112-
run: |
113-
python -m pip install --upgrade pip
114-
python -m pip install flake8 pytest
115-
python -m pip install .
116-
- name: Lint with flake8
117-
run: |
118-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
119-
- name: Test with pytest
120-
env:
121-
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
122-
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
123-
run: |
124-
pytest -s
110+
- uses: actions/checkout@v4
111+
- name: Set up Python 3.12
112+
uses: actions/setup-python@v3
113+
with:
114+
python-version: "3.12"
115+
- name: Install dependencies
116+
run: |
117+
python -m pip install --upgrade pip
118+
python -m pip install pytest ruff
119+
python -m pip install .
120+
- name: Lint with ruff
121+
run: |
122+
ruff check .
123+
ruff format --check
124+
- name: Test with pytest
125+
env:
126+
DOC2X_APIKEY: ${{ secrets.DOC2X_APIKEY }}
127+
DOC2X_APIKEY_PERSONAL: ${{ secrets.DOC2X_APIKEY_PERSONAL }}
128+
run: |
129+
pytest -s

docs/doc2x.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
> [!IMPORTANT]
2-
> The documentation has been migrated to the open source [repository pdfdeal-docs](https://github.com/Menghuan1918/pdfdeal-docs), see the [online documentation](https://menghuan1918.github.io/pdfdeal-docs).
3-
4-
If you are looking for documentation on the `V0.1.x` version, please [see here](doc2x_old.md)
2+
> The documentation has been migrated to the open source [repository pdfdeal-docs](https://github.com/Menghuan1918/pdfdeal-docs), see the [online documentation](https://menghuan1918.github.io/pdfdeal-docs).

docs/doc2x_cn.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
> [!IMPORTANT]
2-
> 文档已经迁移至开源[储存库 pdfdeal-docs](https://github.com/Menghuan1918/pdfdeal-docs),请在此处查看[在线文档](https://menghuan1918.github.io/pdfdeal-docs/zh/)
3-
4-
如您在查找`V0.1.x`版本的使用文档,请[参见此处](doc2x_old_cn.md)
2+
> 文档已经迁移至开源[储存库 pdfdeal-docs](https://github.com/Menghuan1918/pdfdeal-docs),请在此处查看[在线文档](https://menghuan1918.github.io/pdfdeal-docs/zh/)

0 commit comments

Comments
 (0)