Skip to content

Commit f28608f

Browse files
committed
Refactor GitHub Actions workflow to streamline analysis process
- Removed the test job from the GitHub Actions workflow, simplifying the structure. - Retained the analyze job to continue running on pushes to main and master branches. - This change focuses on enhancing the workflow efficiency by eliminating unnecessary steps.
1 parent 58d8427 commit f28608f

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.github/workflows/analyze.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,7 @@ on:
55
branches: [ main, master ] # 在推送到 main 或 master 分支时触发
66

77
jobs:
8-
test:
9-
strategy:
10-
matrix:
11-
python-version: ['3.8', '3.10', '3.12', '3.13']
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v3
16-
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
# 安装所有依赖项
26-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27-
# 安装当前包
28-
pip install -e .
29-
30-
- name: Run test analysis
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: |
34-
# 运行分析器进行测试
35-
github-stats ${{ github.repository_owner }} --access-level basic
36-
378
analyze:
38-
needs: test # 等待所有测试完成
399
runs-on: ubuntu-latest
4010

4111
steps:

0 commit comments

Comments
 (0)