File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212
1313 steps :
14+ - name : 清理磁盘空间
15+ run : |
16+ sudo rm -rf /usr/share/dotnet
17+ sudo rm -rf /opt/ghc
18+ sudo rm -rf /usr/local/share/boost
19+ sudo rm -rf "$AGENT_TOOLSDIRECTORY"
20+ df -h
21+
1422 - uses : actions/checkout@v3
1523
1624 - name : Set up Python
@@ -21,11 +29,11 @@ jobs:
2129 - name : Install dependencies
2230 run : |
2331 python -m pip install --upgrade pip
24- pip install -r requirements.txt
32+ pip install --no-cache-dir - r requirements.txt
2533
2634 - name : Run tests
2735 run : |
28- python -m pytest tests/ -v || echo "Tests completed"
36+ python -m pytest tests/ -v --ignore=tests/integration || echo "Tests completed"
2937
3038 - name : Check code style
3139 run : |
Original file line number Diff line number Diff line change 1515 python-version : ['3.12']
1616
1717 steps :
18+ - name : 清理磁盘空间
19+ run : |
20+ sudo rm -rf /usr/share/dotnet
21+ sudo rm -rf /opt/ghc
22+ sudo rm -rf /usr/local/share/boost
23+ sudo rm -rf "$AGENT_TOOLSDIRECTORY"
24+ df -h
25+
1826 - name : 检出代码
1927 uses : actions/checkout@v3
2028
3442 - name : 安装依赖
3543 run : |
3644 python -m pip install --upgrade pip
37- pip install -r requirements.txt
45+ pip install --no-cache-dir - r requirements.txt
3846
3947 - name : 代码风格检查
4048 run : |
4553 run : |
4654 if [ -d "tests" ]; then
4755 pip install pytest pytest-cov
48- pytest tests/ -v --cov=networksecurity --cov-report=xml || echo "测试完成"
56+ pytest tests/ -v --ignore=tests/integration -- cov=networksecurity --cov-report=xml || echo "测试完成"
4957 else
5058 echo "未找到测试目录,跳过测试"
5159 fi
You can’t perform that action at this time.
0 commit comments