Bump python from 3.12 to 3.14 in /build/docker/tester #5758
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: "Check code format and quality" | |
| on: | |
| push: | |
| branches: [develop, main] | |
| pull_request: | |
| types: [opened, ready_for_review, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-code-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check text files format | |
| run: | | |
| build/automation/etc/githooks/scripts/editorconfig-pre-commit.sh | |
| - name: Tester Build | |
| run: | | |
| make tester-build | |
| - name: Check Python Unit Test Coverage | |
| run: | | |
| make coverage-report | |
| - uses: sonarsource/sonarcloud-github-action@master | |
| # SEE: https://github.com/SonarSource/sonarcloud-github-action | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| projectBaseDir: . | |
| args: > | |
| -Dsonar.sources=application,infrastructure,scripts,test,build/docker | |
| -Dsonar.organization=nhsdigital | |
| -Dsonar.projectKey=nhsdigital_dos-integration | |
| -Dsonar.coverage.exclusions=tests/**,**/tests/**,infrastructure,application/dos_db_handler/**,test/**,scripts/**,application/conftest.py | |
| -Dsonar.python.coverage.reportPaths=coverage.xml | |
| -Dsonar.python.version=3.12 | |
| -Dsonar.exclusions=application/**/tests/** | |
| check-markdown-code-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check Markdown format | |
| uses: DavidAnson/markdownlint-cli2-action@v13 | |
| with: | |
| config: .github/workflows/configs/markdownlint/.markdownlint.json | |
| - name: Check Markdown links | |
| uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: "yes" | |
| config-file: .github/workflows/configs/markdownlint/markdown-check-links.json | |
| base-branch: develop | |
| check-modified-files-only: "yes" | |
| check-prose: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check prose | |
| uses: errata-ai/vale-action@reviewdog | |
| with: | |
| fail_on_error: true | |
| check-python-code-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Tester Build | |
| run: | | |
| make tester-build | |
| - name: Run Python Linting & Formatting | |
| run: | | |
| make python-run-ruff-checks | |
| - name: Check for Python Dead Code | |
| run: | | |
| make python-check-dead-code |