Initial commit #36
Workflow file for this run
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
--- | |
# Perform static code analysis | |
# Name of the action | |
name: Static Code Analysis | |
# Events that trigger the action | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
static_code_analysis: | |
name: Static code analysis | |
runs-on: ubuntu-latest | |
steps: | |
# checkout action documentation | |
# https://github.com/marketplace/actions/checkout | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# Fetch all history for all branches and tags | |
fetch-depth: 0 | |
# setup-python action documentation | |
# https://github.com/marketplace/actions/setup-python | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
# Install static code analysis packages | |
- name: Install static code analysis packages | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade -r \ | |
requirements/requirements_static_code_analysis.txt | |
# Python static code analysis with bandit | |
- name: Python static code analysis | |
run: | | |
bandit -rc .bandit.yml . |