fedpkg/jenkins_test.dockerfile
Ondřej Nosek 2eb01a8600 Use ruff code checker instead of bandit
In the testing CI (Jenkins), stop using bandit in favour of ruff.
Bandit is deprecated in the latest Fedora release (F43).
Added an environment for code coverage analysis.

JIRA: RHELCMP-14986

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-11-26 02:13:19 +01:00

26 lines
541 B
Docker

FROM fedora:42
LABEL \
name="fedpkg test" \
description="Run tests using tox with Python 3" \
vendor="fedpkg developers" \
license="MIT"
RUN dnf -y update && dnf -y install \
python3-setuptools \
rpm-build \
python3-tox \
python3.6 \
gcc \
libcurl-devel \
krb5-devel \
openssl-devel \
make \
git \
ruff
RUN dnf clean all
WORKDIR /src
ENV PYTHONPATH "${PYTHONPATH}:./rpkg"
CMD ["tox", "-e", "py36,py39,py312,py313,py314,flake8,ruff"]