Update pre-commit hook PyCQA/bandit to v1.8.1 #1190
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
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
name: Run tests | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Mark the working directory as safe for Git | |
run: git config --global --add safe.directory $PWD | |
- name: Install the project | |
run: poetry install | |
- name: Run pre-commit checks | |
run: poetry run pre-commit run --all-files | |
licenses: | |
name: Licenses | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Check licenses | |
run: tox -e licenses | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Build the docs | |
run: tox -e docs | |
- name: Save the docs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: datagrepper/docs/_build/html | |
unit_tests: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Build the docs | |
run: tox -e ${{ matrix.tox_env }} | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v1 | |
# with: | |
# name: ${{ matrix.tox_env }} | |
# flags: unittests | |
# env_vars: PYTHON | |
# fail_ci_if_error: true | |
strategy: | |
matrix: | |
tox_env: | |
- py310 | |
- py311 |