Add batching, to not go over 10MB size #14
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: "Lint" | |
on: | |
pull_request: {} | |
push: | |
branches: ["main"] | |
env: | |
PYTHON_VERSION: "3.10" | |
jobs: | |
bandit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
- name: Run bandit | |
run: bandit --ini .bandit -r plugin_scripts tests | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
- name: Run black | |
run: black --check plugin_scripts tests | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
- name: Run flake8 | |
run: flake8 plugin_scripts tests | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
- name: Run isort | |
run: isort --profile black --check-only plugin_scripts tests | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Run mypy | |
uses: jashparekh/mypy-action@v3 | |
with: | |
path: "plugin_scripts tests" | |
requirement_files: "requirements.lock" |