From df1a84bf7751ce4d22570baf8f509f9c390f3f30 Mon Sep 17 00:00:00 2001 From: AkashiCoin Date: Sun, 1 Sep 2024 13:20:31 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20=E6=B7=BB=E5=8A=A0pyt?= =?UTF-8?q?est?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bot_check.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bot_check.yml b/.github/workflows/bot_check.yml index b4502d64..4d9b4bba 100644 --- a/.github/workflows/bot_check.yml +++ b/.github/workflows/bot_check.yml @@ -28,7 +28,14 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/pypoetry - key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }} + key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }} + + - name: Cache playwright cache + id: cache-playwright + uses: actions/cache@v3 + with: + path: ~/.cache/ms-playwright + key: playwright-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }} - name: Cache Data cache uses: actions/cache@v3 @@ -44,6 +51,9 @@ jobs: poetry install --no-root poetry run pip install pydantic==1.10 + - name: Run tests + run: poetry run pytest --cov=zhenxun --cov-report xml + - name: Check bot run id: bot_check_run run: |