Make flake8 happy #9
This file contains 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: static-analysis | |
'on': | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v5 | |
- run: pip install yamllint flake8 bandit | |
- run: yamllint -s .github/workflows/ | |
id: yamllint | |
name: yamllint | |
continue-on-error: true | |
- run: flake8 coturn_exporter | |
id: flake8 | |
name: flake8 | |
continue-on-error: true | |
- run: bandit coturn_exporter | |
id: bandit | |
name: bandit | |
continue-on-error: true | |
- run: 'false' # Fail the workflow if one of the analyzers complained | |
name: Fail workflow | |
if: | # https://github.com/orgs/community/discussions/25641 | |
steps.yamllint.outcome != 'success' || | |
steps.flake8.outcome != 'success' || | |
steps.bandit.outcome != 'success' | |
... |