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
23
.github/workflows/pytest.yml
vendored
23
.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
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
verbose: true
|
python-version: '3.11.4' # Define your project python version
|
||||||
emoji: true
|
- id: run-tests
|
||||||
job-summary: true
|
uses: dima-engineer/pytest-reporter@v3
|
||||||
custom-arguments: '-q'
|
with:
|
||||||
click-to-expand: true
|
cov-omit-list: tests/*
|
||||||
report-title: 'Test Report'
|
cov-threshold-single: 85
|
||||||
|
cov-threshold-total: 90
|
||||||
|
async-tests: true
|
||||||
|
poetry-version: 1.4.2
|
Loading…
Reference in New Issue
Block a user