Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,36 @@ on:
- release_*

jobs:
bandit:
name: Bandit analyzer for Python ${{ matrix.os.python }} on
${{ matrix.os.name }}-${{ matrix.os.version }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os:
- name: centos
version: 7
python: 3
engine: docker
# disable bandit because of the underlying docker image issue
# bandit:
# name: Bandit analyzer for Python ${{ matrix.os.python }} on
# ${{ matrix.os.name }}-${{ matrix.os.version }}
# runs-on: ubuntu-latest

- name: fedora
version: 34
python: 3
engine: docker
# strategy:
# fail-fast: false
# matrix:
# os:
# - name: centos
# version: 7
# python: 3
# engine: docker

steps:
- uses: actions/checkout@v1
# - name: fedora
# version: 34
# python: 3
# engine: docker

- run: ./test.sh
env:
OS: ${{ matrix.os.name }}
OS_VERSION: ${{ matrix.os.version }}
PYTHON_VERSION: ${{ matrix.os.python }}
ENGINE: ${{ matrix.os.engine }}
ACTION: bandit
# steps:
# - uses: actions/checkout@v1

# - run: ./test.sh
# env:
# OS: ${{ matrix.os.name }}
# OS_VERSION: ${{ matrix.os.version }}
# PYTHON_VERSION: ${{ matrix.os.python }}
# ENGINE: ${{ matrix.os.engine }}
# ACTION: bandit

flake8:
name: Flake8 for Python 3
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function setup_charon() {
# install with RPM_PY_SYS=true to avoid error caused by installing on system python
#$RUN sh -c "RPM_PY_SYS=true ${PIP_INST[*]} rpm-py-installer"
# Setuptools install charon from source
$RUN $PYTHON setup.py install
$RUN $PIP install .

# Pip install packages for unit tests
$RUN "${PIP_INST[@]}" -r tests/requirements.txt
Expand Down