Bump pre-commit from 3.7.1 to 3.8.0 #6
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: Validate | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- main | |
- 'release/**' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools poetry | |
poetry install | |
- name: Linting | |
run: | | |
poetry run isort . | |
poetry run black . | |
poetry run flake8 . --extend-ignore=D,E501,W601 --extend-exclude=docs/ --statistics --count | |
- name: Security | |
run: poetry run bandit -c pyproject.toml -r . | |
- name: Testing | |
run: python -m unittest discover |