version 3.5.0 #317
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
| # | |
| # Run static code analysis. | |
| # | |
| name: Static Analysis | |
| on: | |
| - push | |
| jobs: | |
| static-check: | |
| name: Run Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-dev-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-dev- | |
| - name: Install dependencies | |
| run: | | |
| pip install virtualenv==20.31.2 | |
| make venv install-all | |
| - name: Static analysis of the code | |
| run: | | |
| source .venv/bin/activate | |
| make analyze |