Skip to content

♻️ 重构 Discord 出站序列化 #166

♻️ 重构 Discord 出站序列化

♻️ 重构 Discord 出站序列化 #166

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test Coverage
runs-on: ${{ matrix.os }}
concurrency:
group: test-coverage-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
env:
OS: ${{ matrix.os }}
PYTHON_VERSION: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
name: Setup UV
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
uv python pin ${{ env.PYTHON_VERSION }}
uv sync --group test
- name: Run Pytest
run: |
uv run pytest --cov --cov-branch --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v5
with:
env_vars: OS,PYTHON_VERSION
files: ./coverage.xml
flags: unittests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}