From 2890e9c5961215a3c8927815b45ab7d92a8620f0 Mon Sep 17 00:00:00 2001 From: snowy Date: Wed, 28 Aug 2024 04:28:06 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E6=B5=8B=E8=AF=95=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pytest.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index a20d85c..aa9702e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -7,15 +7,18 @@ on: jobs: RunTest: - name: Run pytest runs-on: ubuntu-latest - permissions: - contents: read - uses: pavelzw/pytest-action@v2 - with: - verbose: true - emoji: true - job-summary: true - custom-arguments: '-q' - click-to-expand: true - report-title: 'Test Report' \ No newline at end of file + name: Unit tests + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11.4' # Define your project python version + - id: run-tests + uses: dima-engineer/pytest-reporter@v3 + with: + cov-omit-list: tests/* + cov-threshold-single: 85 + cov-threshold-total: 90 + async-tests: true + poetry-version: 1.4.2 \ No newline at end of file