Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mattholy committed Jan 22, 2024
1 parent ec71db1 commit 1643852
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 1643852

Please sign in to comment.