Skip to content

Merge pull request #238 from Mab879/use_ubi8 #194

Merge pull request #238 from Mab879/use_ubi8

Merge pull request #238 from Mab879/use_ubi8 #194

Workflow file for this run

name: "Gating (deps, build, smoke)"
on:
push:
branches: ["main", "*"]
pull_request:
branches: ["main"]
jobs:
test-centos-stream-9:
name: Test on CentOS Stream 9 (Container)
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-rhel-8:
name: Test on RHEL 8 (Container)
runs-on: ubuntu-latest
container:
image: registry.access.redhat.com/ubi8/ubi:latest
steps:
- name: Install Deps
run: dnf install -y python3 python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-fedora-latest:
name: Test on Fedora latest (Container)
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh
test-fedora-rawhide:
name: Test on Fedora Rawhide (Container)
runs-on: ubuntu-latest
container:
image: fedora:rawhide
steps:
- name: Install Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Fix missing Deps
run: dnf install -y python3-devel python3-setuptools rpm-build
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: python3 setup.py bdist_rpm --requires=python3-lxml,python3-jinja2 --build-requires=python3-devel,python3-setuptools
- name: RPM install
run: dnf install -y ./dist/openscap-report-*.noarch.rpm
- name: Test parameter -h
run: oscap-report -h
- name: Test of the basic function
working-directory: ./tests
run: ./smoke.sh