name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: # 项目核心场景是读取 Windows 通达信安装目录下的 .day 文件, # 路径分隔符 / GBK 文件名 / tzdata 时区行为在 Windows 上与 Linux 不同, # 故补充 Windows 矩阵覆盖这些平台特有路径。 os: [ubuntu-latest, windows-latest] python-version: ["3.10", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: pip install -e ".[dev]" - run: pip install -r requirements-dev.txt - run: python -m pytest tests/unit/ -v --tb=short --cov src/easy_tdx --cov-fail-under=60 - run: ruff check src/ tests/ - run: ruff format --check src/ tests/ mypy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.13" - run: pip install -e ".[dev,web]" - run: mypy src/