mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-25 15:55:03 +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: 安装依赖
|
- name: 安装依赖
|
||||||
run: |-
|
run: |-
|
||||||
python -m pip install pdm
|
python -m pip install pdm
|
||||||
pdm install --no-verbose
|
pdm install
|
||||||
|
pip install pytest==8.3.2
|
||||||
|
|
||||||
- name: 运行测试
|
- name: 运行测试
|
||||||
run: |-
|
run: pytest
|
||||||
pdm run pytest
|
|
||||||
|
|
||||||
- name: 生成测试报告
|
- name: 生成测试报告
|
||||||
run: |-
|
run: |-
|
||||||
pdm run pytest --cov-report=xml
|
pytest --cov-report=xml
|
||||||
pdm run coverage xml
|
|
||||||
|
|
||||||
- name: 上传测试报告
|
- name: 上传测试报告
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user