Skip to content

Publish 2024.2.0 Dockerfiles (#307) #1576

Publish 2024.2.0 Dockerfiles (#307)

Publish 2024.2.0 Dockerfiles (#307) #1576

Workflow file for this run

name: Codestyle checks
on: [ push, pull_request, workflow_dispatch ]
permissions: read-all
jobs:
codestyle:
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Setting up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Setting up Python dependencies
if: ${{ always() }}
run: python -m pip install -r requirements.txt
- name: Setting up Python codestyle checks/test dependencies
if: ${{ always() }}
run: python -m pip install -r requirements_dev.txt
- name: Running Bandit
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: python -m bandit -r ./ -f screen -c bandit.yaml
- name: Running PEP checks
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: python -m flake8 ./ --config=setup.cfg --show-source
- name: Running MyPy checks
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: python -m mypy ./ --config-file ./setup.cfg --show-error-context --show-column-numbers --pretty
- name: Running pytest (not Docker image tests)
if: ${{ always() }}
run: python -m pytest ./utils/tests --self-contained-html --html=utils_unittests.html
- name: Collecting codestyle artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: codestyle_checks
path: |
./utils_unittests.html