NAS-140250 / 27.0.0-BETA.1 / Fix keepalived boot deadlock in configur… #1116
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: mypy static type checks | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/truenas/middleware:master | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mypy | |
| run: apt install -y mypy | |
| - name: Test | |
| run: | | |
| cd src/middlewared | |
| mypy \ | |
| middlewared/plugins/catalog/ \ | |
| middlewared/plugins/container/ \ | |
| middlewared/plugins/cron/ \ | |
| middlewared/plugins/docker/ \ | |
| middlewared/plugins/init_shutdown_script/ \ | |
| middlewared/plugins/keyvalue.py \ | |
| middlewared/plugins/ntp/ \ | |
| middlewared/plugins/snapshot/ \ | |
| middlewared/plugins/truenas/ \ | |
| middlewared/plugins/truesearch.py \ | |
| middlewared/plugins/webshare/ \ | |
| middlewared/plugins/update_/ \ | |
| middlewared/plugins/ups/ \ | |
| middlewared/plugins/zfs/ \ | |
| --exclude middlewared/etc_files \ | |
| --follow-imports silent \ | |
| --strict |