NAS-139599 / 26.0.0-BETA.1 / Auto-trigger migration of incus containe… #1
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 dev tools | |
| run: FAKE_ENV=1 ./src/freenas/usr/bin/install-dev-tools | |
| - name: Install mypy | |
| run: apt install -y mypy | |
| - name: Test | |
| run: | | |
| cd src/middlewared | |
| mypy \ | |
| middlewared/plugins/catalog/ \ | |
| middlewared/plugins/init_shutdown_script/ \ | |
| middlewared/plugins/keyvalue.py \ | |
| middlewared/plugins/truesearch.py \ | |
| middlewared/plugins/webshare/ \ | |
| middlewared/plugins/update_/ \ | |
| middlewared/plugins/ups/ \ | |
| middlewared/plugins/zfs/ \ | |
| --exclude middlewared/etc_files \ | |
| --follow-imports silent \ | |
| --strict |