Skip to content

chore(deps): update codecov/codecov-action action to v7 #99

chore(deps): update codecov/codecov-action action to v7

chore(deps): update codecov/codecov-action action to v7 #99

Workflow file for this run

# Pytest — 运行全部单元测试并生成覆盖率报告
name: Pytest
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
- name: Run tests with coverage
run: uv run pytest -n auto --cov=autowsgr --cov-report=xml --cov-report=term-missing --junitxml=junit.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: OpenWSGR/AutoWSGR
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}