mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-22 14:17:38 +08:00
🔥 测试工作流
This commit is contained in:
parent
1823091379
commit
2890e9c596
25
.github/workflows/pytest.yml
vendored
25
.github/workflows/pytest.yml
vendored
@ -7,15 +7,18 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
RunTest:
|
RunTest:
|
||||||
name: Run pytest
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
name: Unit tests
|
||||||
contents: read
|
steps:
|
||||||
uses: pavelzw/pytest-action@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
- uses: actions/setup-python@v5
|
||||||
verbose: true
|
with:
|
||||||
emoji: true
|
python-version: '3.11.4' # Define your project python version
|
||||||
job-summary: true
|
- id: run-tests
|
||||||
custom-arguments: '-q'
|
uses: dima-engineer/pytest-reporter@v3
|
||||||
click-to-expand: true
|
with:
|
||||||
report-title: 'Test Report'
|
cov-omit-list: tests/*
|
||||||
|
cov-threshold-single: 85
|
||||||
|
cov-threshold-total: 90
|
||||||
|
async-tests: true
|
||||||
|
poetry-version: 1.4.2
|
Loading…
Reference in New Issue
Block a user