Code Quality Checks #7
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: Code Quality Checks | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to run checks on' | |
required: true | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint flake8 mypy bandit | |
- name: Run Pylint | |
run: | | |
pylint polars_extensions || true | |
- name: Run Flake8 | |
run: | | |
flake8 polars_extensions || true | |
- name: Run MyPy | |
run: | | |
mypy polars_extensions || true | |
- name: Run Bandit | |
run: | | |
bandit -r polars_extensions || true |