mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-22 14:17:38 +08:00
🔥 测试工作流
This commit is contained in:
parent
a307913a3d
commit
61b4bd65d6
9
.github/workflows/pytest.yml
vendored
9
.github/workflows/pytest.yml
vendored
@ -18,16 +18,15 @@ jobs:
|
||||
- name: 安装依赖
|
||||
run: |-
|
||||
python -m pip install pdm
|
||||
pdm install --no-verbose
|
||||
pdm install
|
||||
pip install pytest==8.3.2
|
||||
|
||||
- name: 运行测试
|
||||
run: |-
|
||||
pdm run pytest
|
||||
run: pytest
|
||||
|
||||
- name: 生成测试报告
|
||||
run: |-
|
||||
pdm run pytest --cov-report=xml
|
||||
pdm run coverage xml
|
||||
pytest --cov-report=xml
|
||||
|
||||
- name: 上传测试报告
|
||||
uses: actions/upload-artifact@v2
|
||||
|
Loading…
Reference in New Issue
Block a user