Enhance mission features and improve build scripts #1256
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: Python Code Quality | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| paths: | |
| - radio/** | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| paths: | |
| - radio/** | |
| jobs: | |
| build: | |
| name: Run Python quality checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install --upgrade pip | |
| - name: Install ruff and mypy | |
| run: pip install $(grep -E '^(ruff|mypy)==' radio/requirements.txt) | |
| - name: Run ruff | |
| working-directory: ./radio | |
| run: ruff check . | |
| - name: Run mypy | |
| working-directory: ./radio | |
| run: mypy . |