Skip to content

[airbyte-cdk] - File-based sources will succeed check if any configured streams succeed #2997

[airbyte-cdk] - File-based sources will succeed check if any configured streams succeed

[airbyte-cdk] - File-based sources will succeed check if any configured streams succeed #2997

name: Python CDK - Run mypy on modified cdk files
on:
pull_request:
paths:
- "airbyte-cdk/python/airbyte_cdk/**/*.py"
jobs:
run-mypy-on-modified-cdk-files:
name: "Run mypy on modified cdk files"
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install mypy==1.11.0
- name: Get Python changed files
id: changed-py-files
uses: tj-actions/changed-files@v43
with:
files: "airbyte-cdk/python/airbyte_cdk/**/*.py"
- name: Run if any of the listed files above is changed
if: steps.changed-py-files.outputs.any_changed == 'true'
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files }} --config-file airbyte-cdk/python/mypy.ini --install-types --non-interactive