Skip to content

Allow "warning" type protected ranges #1225

Allow "warning" type protected ranges

Allow "warning" type protected ranges #1225

Workflow file for this run

name: lint_python
on:
push:
branches:
- "**" # run all branches
tags-ignore:
- "*" # ignore all tags, release.yaml will trigger the CI
pull_request: # run on all pull requests
concurrency:
cancel-in-progress: true
group: group-${{ github.ref_name }}
jobs:
lint_python:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install -U pip
- run: pip install -U bandit mypy pyupgrade safety tox setuptools
- run: bandit --recursive --skip B105,B110,B311,B605,B607 --exclude ./.tox .
if: ${{ matrix.python >= '3.8' }}
- run: tox -e lint
- run: tox -e py
- run: shopt -s globstar && pyupgrade --py3-only **/*.py # --py36-plus
- run: safety check -i 42559 -i 62044 # pip <= 20.1.1, we upgrade it just above
- run: tox -e build
- run: tox -e doc