airbyte-cdk: Improve Error Handling in Legacy CDK #1675
Workflow file for this run
This file contains 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: Connector Extensibility - 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.6.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 |