From 52510e0e49101319c708701e7e836e65765ca090 Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:04:38 +0800 Subject: [PATCH 1/5] New workflow to test the code. --- .github/workflows/testscript.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/testscript.yml diff --git a/.github/workflows/testscript.yml b/.github/workflows/testscript.yml new file mode 100644 index 0000000..01b9802 --- /dev/null +++ b/.github/workflows/testscript.yml @@ -0,0 +1,24 @@ +name: Auto Test + +on: + push: + branches: + - main + - release/* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run test script + run: | + python -m testscripts.testmain From ceb5f54275762db5110d772ce91ffd6741bad376 Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:05:46 +0800 Subject: [PATCH 2/5] Update testscript.yml --- .github/workflows/testscript.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/testscript.yml b/.github/workflows/testscript.yml index 01b9802..7cf8140 100644 --- a/.github/workflows/testscript.yml +++ b/.github/workflows/testscript.yml @@ -1,10 +1,6 @@ name: Auto Test -on: - push: - branches: - - main - - release/* +on: [push] jobs: build: From 9adaef53cf9a09f4319bd38179c11d149c0f2c64 Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:08:34 +0800 Subject: [PATCH 3/5] Delete .github/workflows/pylint.yml --- .github/workflows/pylint.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 6025c50..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install -r requirements.txt - - name: Analysing the code with pylint - run: | - pylint `ls -R|grep .py$|xargs` From 7fb77f7a668ae4e32bd86b3d966eb8e7489dd97e Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:08:58 +0800 Subject: [PATCH 4/5] Update testscript.yml --- .github/workflows/testscript.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testscript.yml b/.github/workflows/testscript.yml index 7cf8140..b033b99 100644 --- a/.github/workflows/testscript.yml +++ b/.github/workflows/testscript.yml @@ -3,7 +3,7 @@ name: Auto Test on: [push] jobs: - build: + TestScript: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 89c56d4765f48070982b98f597cd614a6e3c682f Mon Sep 17 00:00:00 2001 From: haarlemmer Date: Sat, 6 Apr 2024 23:10:49 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f1cb9fd..de6e738 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,9 @@ # CTFileParser -[![Pylint](https://github.com/haarlemmer/CTFile-Auto-Download/actions/workflows/pylint.yml/badge.svg)](https://github.com/haarlemmer/CTFile-Auto-Download/actions/workflows/pylint.yml) +[![Auto Test](https://github.com/haarlemmer/CTFileParser/actions/workflows/testscript.yml/badge.svg)](https://github.com/haarlemmer/CTFileParser/actions/workflows/testscript.yml) -城通网盘解析模块 - -**现观察到城通网盘对API进行了更改,模块现不可用,请等待更新** +*上方的 Badge 显示了上次 Commit 时此程序是否可用* -## Todo -- [ ] 修复解析 +城通网盘解析模块 ## Features - [X] 城通及其马甲域名(包括自定义域名)分享链接解析