From 16438527d511703c22c87a31703e4865f2728460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E7=89=B9=E6=B5=A9=E5=80=AA?= Date: Mon, 22 Jan 2024 13:41:54 +0800 Subject: [PATCH] update --- .github/workflows/ci.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfbc16d..78e8deb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,15 +22,12 @@ jobs: - name: Install backend dependencies run: | python -m pip install --upgrade pip - pip install -r wand/service/backend/requirements.txt + pip install -r ./service/backend/requirements.txt pip install pytest-cov - - name: Add wand to PYTHONPATH - run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV - - name: Run backend tests with coverage run: | - pytest --cov=wand/service/backend --cov-report=xml wand/service/backend/tests + pytest --cov=./service/backend --cov-report=xml ./service/backend/tests - name: Upload backend coverage to Codecov uses: codecov/codecov-action@v2 @@ -43,14 +40,3 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - # 前端测试相关步骤... - # 生成覆盖率报告,例如,如果是 JavaScript 项目,可能会使用 Jest 的 --coverage 标志 - - - name: Upload frontend coverage to Codecov - uses: codecov/codecov-action@v2 - with: - token: ${{ secrets.CODECOV_TOKEN }} - # 确保指定正确的前端覆盖率报告文件路径 - files: frontend-coverage.xml - fail_ci_if_error: true