Skip to content

Merge pull request #59 from Morpheus636/dependabot/pip/future-0.18.3 #123

Merge pull request #59 from Morpheus636/dependabot/pip/future-0.18.3

Merge pull request #59 from Morpheus636/dependabot/pip/future-0.18.3 #123

name: Code Analysis on Pull
on:
push:
branches: [ main, release/** ]
pull_request:
branches: [ main, release/** ]
jobs:
code_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
- name: Install Packages
run: poetry install
- name: Flake8 (Linter)
run: poetry run flake8
- name: isort (Import Sorter)
run: poetry run isort
- name: Black (Code Formatter)
run: find . -type f -name "*.py" | xargs poetry run black
- name: Check for changes
id: changes
uses: UnicornGlobal/[email protected]
- name: Commit and Push Changes
if: steps.changes.outputs.changed == 1
run: |
git config user.name code-analysis-action
git config user.email [email protected]
git commit -a -m "Changes by Code Analysis Action" --no-verify
git push