Skip to content

fix(ci): 修复三个 CI workflow 失败 + 各 SDK 补充测试覆盖率 #93

fix(ci): 修复三个 CI workflow 失败 + 各 SDK 补充测试覆盖率

fix(ci): 修复三个 CI workflow 失败 + 各 SDK 补充测试覆盖率 #93

Workflow file for this run

name: CI - Python SDK
on:
workflow_dispatch:
push:
branches: [main]
paths: ["sdks/python/**"]
pull_request:
branches: [main]
paths: ["sdks/python/**"]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "sdks/python/requirements*.txt"
- run: pip install -e '.[dev]'
working-directory: sdks/python
- run: pytest --cov=croupier --cov-report=xml --cov-report=term
working-directory: sdks/python
- uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: sdks/python/coverage.xml
flags: python-sdk
disable_search: true