Skip to content

Merge pull request #29 from timothyhull/timothyhull/Add-additonal-vid… #75

Merge pull request #29 from timothyhull/timothyhull/Add-additonal-vid…

Merge pull request #29 from timothyhull/timothyhull/Add-additonal-vid… #75

---
# 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 .