Skip to content

Merge pull request #93 from aws/dependabot/pip/experimental/SMUS-CICD… #223

Merge pull request #93 from aws/dependabot/pip/experimental/SMUS-CICD…

Merge pull request #93 from aws/dependabot/pip/experimental/SMUS-CICD… #223

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main, master ]
paths:
- 'experimental/SMUS-CICD-pipeline-cli/**'
push:
branches: [ main, master ]
paths:
- 'experimental/SMUS-CICD-pipeline-cli/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd experimental/SMUS-CICD-pipeline-cli
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install flake8 black isort
- name: Lint with flake8
run: |
cd experimental/SMUS-CICD-pipeline-cli
flake8 src/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check code formatting with black
run: |
cd experimental/SMUS-CICD-pipeline-cli
black --check --diff src/
- name: Check import sorting with isort
run: |
cd experimental/SMUS-CICD-pipeline-cli
isort --check-only --diff src/
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd experimental/SMUS-CICD-pipeline-cli
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install safety bandit
- name: Check for security vulnerabilities
run: |
cd experimental/SMUS-CICD-pipeline-cli
safety check
bandit -r src/ -f json -o bandit-report.json || true
- name: Upload security report
uses: actions/upload-artifact@v4
if: always()
with:
name: security-report
path: experimental/SMUS-CICD-pipeline-cli/bandit-report.json
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
cd experimental/SMUS-CICD-pipeline-cli
python -m pip install --upgrade pip
pip install pyyaml
- name: Validate documentation manifests
run: |
cd experimental/SMUS-CICD-pipeline-cli
python docs/scripts/validate_doc_manifests.py
- name: Validate documentation back links
run: |
cd experimental/SMUS-CICD-pipeline-cli
python tests/scripts/validate_doc_backlinks.py