Basic forgejo test actions
This commit is contained in:
parent
c3239d46c1
commit
3828aa2b28
6 changed files with 111 additions and 0 deletions
37
.forgejo/workflows/tests.yaml
Normal file
37
.forgejo/workflows/tests.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
on: [push, pull_request]
|
||||
jobs:
|
||||
flake8:
|
||||
runs-on: podman
|
||||
container:
|
||||
image: quay.io/tkopecek/koji-fedora-test:f44@sha256:5e1187ee4536674e08961cbe6b1b84dfc9df15a513dee328365909be5a0d5ed8
|
||||
steps:
|
||||
- run: >-
|
||||
git clone ${{ forgejo.event.pull_request.head.repo.clone_url || format('{0}/{1}', forgejo.server_url, forgejo.repository) }} . &&
|
||||
git checkout ${{ forgejo.event.pull_request.head.sha || forgejo.sha }}
|
||||
- run: make flake8
|
||||
bandit:
|
||||
runs-on: podman
|
||||
container:
|
||||
image: quay.io/tkopecek/koji-fedora-test:f44@sha256:5e1187ee4536674e08961cbe6b1b84dfc9df15a513dee328365909be5a0d5ed8
|
||||
steps:
|
||||
- run: >-
|
||||
git clone ${{ forgejo.event.pull_request.head.repo.clone_url || format('{0}/{1}', forgejo.server_url, forgejo.repository) }} . &&
|
||||
git checkout ${{ forgejo.event.pull_request.head.sha || forgejo.sha }}
|
||||
- run: make bandit
|
||||
tests:
|
||||
runs-on: podman
|
||||
strategy:
|
||||
matrix:
|
||||
variant:
|
||||
- koji-fedora-test:43@sha256:cf1ef55da0d7dd9251b79263c4d1e2350d4291fcd6dc54a1e751d3fe2cf4614d
|
||||
- koji-fedora-test:44@sha256:5e1187ee4536674e08961cbe6b1b84dfc9df15a513dee328365909be5a0d5ed8
|
||||
- koji-fedora-test:rawhide@sha256:5e1187ee4536674e08961cbe6b1b84dfc9df15a513dee328365909be5a0d5ed8
|
||||
- koji-centos-test:9@sha256:c5fe30a62d4b62b46acdf764bf1f7293e9fa4287972ec6a86ccb43209646dc32
|
||||
- koji-centos-test:10@sha256:1f53b2b040e449b0cfce526f1a221e6dbd6648506270220ea333728a6b52a90b
|
||||
container:
|
||||
image: quay.io/tkopecek/${{matrix.variant}}
|
||||
steps:
|
||||
- run: >-
|
||||
git clone ${{ forgejo.event.pull_request.head.repo.clone_url || format('{0}/{1}', forgejo.server_url, forgejo.repository) }} . &&
|
||||
git checkout ${{ forgejo.event.pull_request.head.sha || forgejo.sha }}
|
||||
- run: make test3
|
||||
17
devtools/containers/Dockerfile.centos10
Normal file
17
devtools/containers/Dockerfile.centos10
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM quay.io/centos/centos:stream10
|
||||
|
||||
RUN \
|
||||
dnf -y update --nodocs --setopt=install_weak_deps=False && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False epel-release && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False --enablerepo crb \
|
||||
git \
|
||||
gcc \
|
||||
glibc-langpack-en \
|
||||
krb5-devel \
|
||||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-librepo \
|
||||
python3-setuptools \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
@ -4,6 +4,7 @@ RUN \
|
|||
dnf -y update --nodocs --setopt=install_weak_deps=False && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False epel-release && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False --enablerepo crb \
|
||||
git \
|
||||
gcc \
|
||||
glibc-langpack-en \
|
||||
krb5-devel \
|
||||
|
|
|
|||
27
devtools/containers/Dockerfile.f43
Normal file
27
devtools/containers/Dockerfile.f43
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM registry.fedoraproject.org/fedora:42
|
||||
RUN \
|
||||
dnf -y update --nodocs --setopt=install_weak_deps=False && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False \
|
||||
gcc \
|
||||
git \
|
||||
glibc-langpack-en \
|
||||
krb5-devel \
|
||||
python3-cffi \
|
||||
python3-cheetah \
|
||||
python3-dateutil \
|
||||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-dnf \
|
||||
python3-jinja2 \
|
||||
python3-librepo \
|
||||
python3-multilib \
|
||||
python3-pytest \
|
||||
python3-requests \
|
||||
python3-requests-gssapi \
|
||||
python3-requests-mock \
|
||||
python3-rpm \
|
||||
python3-setuptools \
|
||||
python3-six \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
28
devtools/containers/Dockerfile.f44
Normal file
28
devtools/containers/Dockerfile.f44
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
FROM registry.fedoraproject.org/fedora:44
|
||||
RUN \
|
||||
dnf -y update --nodocs --setopt=install_weak_deps=False && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False \
|
||||
flake8 \
|
||||
gcc \
|
||||
git \
|
||||
glibc-langpack-en \
|
||||
krb5-devel \
|
||||
python3-cffi \
|
||||
python3-cheetah \
|
||||
python3-dateutil \
|
||||
python3-defusedxml \
|
||||
python3-devel \
|
||||
python3-dnf \
|
||||
python3-jinja2 \
|
||||
python3-librepo \
|
||||
python3-multilib \
|
||||
python3-pytest \
|
||||
python3-requests \
|
||||
python3-requests-gssapi \
|
||||
python3-requests-mock \
|
||||
python3-rpm \
|
||||
python3-setuptools \
|
||||
python3-six \
|
||||
python3-tox \
|
||||
rpm-build && \
|
||||
dnf clean all
|
||||
|
|
@ -3,6 +3,7 @@ RUN \
|
|||
dnf -y update --nodocs --setopt=install_weak_deps=False && \
|
||||
dnf install -y --nodocs --setopt=install_weak_deps=False \
|
||||
gcc \
|
||||
git \
|
||||
glibc-langpack-en \
|
||||
krb5-devel \
|
||||
python3-defusedxml \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue