Bump actions/setup-python from 4.5.0 to 5.2.0 #1098
Workflow file for this run
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.6" | |
jobs: | |
shfmt: | |
name: Bash shfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- run: docker compose run --rm shfmt | |
lint: | |
name: Lint bash and markdown | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- run: docker compose run --rm lint | |
bandit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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 --recursive --check-only plugin_scripts tests | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
- name: Run mypy | |
run: mypy --ignore-missing-imports plugin_scripts/deploy.py tests/test_deploy.py |