🔥 测试工作流

This commit is contained in:
远野千束 2024-08-28 04:28:06 +08:00
parent 1823091379
commit 2890e9c596

View File

@ -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