pbi-cli/.github/workflows/ci.yml
MinaSaad1 58926221c2 fix: resolve CI failures (formatting, mypy, Windows-only tests)
- Run ruff format on all source files
- Fix mypy type: ignore comments for .NET imports (import-not-found)
- Add mypy overrides for pythonnet/clr/clr_loader (no type stubs)
- Fix trace_export return type (dict[str, Any] not dict[str, str])
- Restrict CI test matrix to Windows-only (Power BI Desktop requirement)
2026-03-27 07:28:44 +02:00

49 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e ".[dev]"
- run: ruff check src/ tests/
- run: ruff format --check src/ tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e ".[dev]"
- run: mypy src/
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [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: pytest --cov=pbi_cli --cov-report=xml -m "not e2e" -v
- name: Upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
file: coverage.xml
continue-on-error: true