docker msodbcsql fix #603
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: "mypy check" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
static-type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- run: pip install ".[dev]" | |
- name: Get Python changed files | |
id: changed-py-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
src/**/*.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 }} |