feat(data-analytics-demo): T-06 churn + T-07 upsell ML pipelines (#87) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: python test (data-analytics-demo) | |
| on: | |
| push: | |
| branches: [main, master] | |
| paths: | |
| - "packages/data-analytics-demo/**" | |
| - ".github/workflows/python-test.yml" | |
| pull_request: | |
| branches: [main, master] | |
| paths: | |
| - "packages/data-analytics-demo/**" | |
| - ".github/workflows/python-test.yml" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: packages/data-analytics-demo | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: install package + dev extras | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: ruff (lint) | |
| run: ruff check src tests | |
| - name: mypy (strict type-check) | |
| run: mypy -p data_analytics_demo | |
| - name: pytest (coverage ≥ 80%) | |
| run: pytest |