mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-03 18:46:45 +00:00
Some checks failed
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.10) (push) Failing after 3s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.12) (push) Failing after 4s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.9) (push) Failing after 4s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.11) (push) Failing after 5s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.12) (push) Failing after 6s
Pyright Lint / Pyright Lint (pydantic-v1) (push) Failing after 7s
Pyright Lint / Pyright Lint (pydantic-v2) (push) Failing after 8s
Site Deploy / publish (push) Failing after 8s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.10) (push) Failing after 1m56s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.11) (push) Failing after 2m2s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.9) (push) Failing after 2m3s
Ruff Lint / Ruff Lint (push) Failing after 2m4s
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.9) (push) Has been cancelled
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: Code Coverage
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- "envs/**"
|
|
- "nonebot/**"
|
|
- "packages/**"
|
|
- "tests/**"
|
|
- ".github/actions/setup-python/**"
|
|
- ".github/workflows/codecov.yml"
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
|
|
jobs:
|
|
test:
|
|
name: Test Coverage
|
|
runs-on: ${{ matrix.os }}
|
|
concurrency:
|
|
group: test-coverage-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.env }}
|
|
cancel-in-progress: true
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
env: [pydantic-v1, pydantic-v2]
|
|
env:
|
|
OS: ${{ matrix.os }}
|
|
PYTHON_VERSION: ${{ matrix.python-version }}
|
|
PYDANTIC_VERSION: ${{ matrix.env }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Setup Python environment
|
|
uses: ./.github/actions/setup-python
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
env-group: ${{ matrix.env }}
|
|
|
|
- name: Run Pytest
|
|
run: |
|
|
uv run --no-sync bash ./scripts/run-tests.sh
|
|
|
|
- name: Upload test results
|
|
uses: codecov/test-results-action@v1
|
|
with:
|
|
env_vars: OS,PYTHON_VERSION,PYDANTIC_VERSION
|
|
files: ./tests/junit.xml
|
|
flags: unittests
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
env_vars: OS,PYTHON_VERSION,PYDANTIC_VERSION
|
|
files: ./tests/coverage.xml
|
|
flags: unittests
|
|
fail_ci_if_error: true
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|