-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
quyuan
committed
Jul 3, 2024
1 parent
0ce98a0
commit 40ac58e
Showing
11 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: magicdoc | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- "cmds/**" | ||
- "**.md" | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- "cmds/**" | ||
- "**.md" | ||
workflow_dispatch: | ||
jobs: | ||
pdf-test: | ||
runs-on: doc | ||
timeout-minutes: 180 | ||
strategy: | ||
fail-fast: true | ||
|
||
steps: | ||
- name: magicdoc | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: check-requirements | ||
run: | | ||
changed_files=$(git diff --name-only -r HEAD~1 HEAD) | ||
echo $changed_files | ||
if [[ $changed_files =~ "requirements.txt" ]] || [[ $changed_files =~ "requirements-qa.txt" ]]; then | ||
pip install -r requirements.txt | ||
pip install -r requirements-qa.txt | ||
fi | ||
- name: get-benchmark-result | ||
run: | | ||
echo "start test" | ||
cd tools && python benchmark.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: magicdoc | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- "cmds/**" | ||
- "**.md" | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- "cmds/**" | ||
- "**.md" | ||
workflow_dispatch: | ||
jobs: | ||
cli-test: | ||
runs-on: doc | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: true | ||
|
||
steps: | ||
- name: magicdoc cli | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: check-requirements | ||
run: | | ||
changed_files=$(git diff --name-only -r HEAD~1 HEAD) | ||
echo $changed_files | ||
if [[ $changed_files =~ "requirements.txt" ]] || [[ $changed_files =~ "requirements-qa.txt" ]]; then | ||
pip install -r requirements.txt | ||
pip install -r requirements-qa.txt | ||
fi | ||
- name: test_cli | ||
run: | | ||
echo $GITHUB_WORKSPACE | ||
cd $GITHUB_WORKSPACE && pytest -s -v test/test_cli/test_cli.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Levenshtein | ||
nltk | ||
rapidfuzz | ||
statistics | ||
openxlab #安装opendatalab | ||
pandas | ||
numpy | ||
matplotlib | ||
seaborn | ||
scipy | ||
scikit-learn | ||
tqdm | ||
htmltabletomd | ||
pypandoc |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import os | ||
conf = { | ||
"code_path": os.environ.get('GITHUB_WORKSPACE'), | ||
"pdf_res_path": os.environ.get('GITHUB_WORKSPACE') + "/pdf_res", | ||
|
||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>这是个标题</title> | ||
</head> | ||
<body> | ||
<h1>这是一个简单的 HTML 页面</h1> | ||
<p>Hello World!</p> | ||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters