-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Supports crawling classical Chinese and fixes the issue that Ch…
…inese translation or annotations are missing
- Loading branch information
Showing
8 changed files
with
250 additions
and
210 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,12 @@ | ||
# Always validate the PR title AND all the commits | ||
titleAndCommits: true | ||
# Require at least one commit to be valid | ||
# this is only relevant when using commitsOnly: true or titleAndCommits: true, | ||
# which validate all commits by default | ||
anyCommit: true | ||
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns") | ||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true) | ||
allowMergeCommits: false | ||
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"") | ||
# this is only relevant when using commitsOnly: true (or titleAndCommits: true) | ||
allowRevertCommits: false |
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,62 @@ | ||
name: CI/CD | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
black-check: | ||
name: Black Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4.1.4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install Black | ||
run: pip install black | ||
- name: Check Python files with Black | ||
run: black --check . --exclude ".*pb2.*\.py" | ||
install-dependencies: | ||
name: Install Python Dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4.1.4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then | ||
pip install -r requirements.txt | ||
fi | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: | ||
- black-check | ||
- install-dependencies | ||
if: github.repository == 'palp1tate/fetch_gushiwen' && github.event_name == 'push' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.4 | ||
with: | ||
fetch-depth: -1 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 20 | ||
- name: Fetch Previous version | ||
id: get-previous-tag | ||
uses: actions-ecosystem/action-get-latest-tag@v1.6.0 | ||
- name: Release | ||
run: yarn global add semantic-release@23.1.1 && semantic-release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,4 @@ | ||
|
||
.idea | ||
|
||
*.csv |
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,2 @@ | ||
beautifulsoup4==4.11.1 | ||
requests==2.32.2 |
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
Oops, something went wrong.