debian-forge/.github/workflows/test-on-centos.yml
Tomáš Hozza 6c9c314b48 CI: update osbuild-ci container to latest-202502250751
The main reason is that it comes with license_expression python package
needed for newly added SBOM test cases.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-02-27 13:31:19 +01:00

34 lines
1 KiB
YAML

name: Run tests in Centos container
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
tests-on-centos:
strategy:
matrix:
centos:
- version: "9"
pytest_exclude: 'not (TestBoot and boot)'
- version: "10"
pytest_exclude: 'not (TestBoot and boot) and not (test_write_read)'
name: "Unittests on Centos Stream ${{ matrix.centos.version }}"
runs-on: ubuntu-24.04
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Run in container"
uses: addnab/docker-run-action@v3
with:
image: quay.io/osbuild/osbuild-ci-c${{ matrix.centos.version }}s:latest-202502250751
options: --privileged -v ${{ github.workspace }}:/osbuild --workdir /osbuild
run: |
python3 -m pytest \
--rootdir $(pwd) \
--ignore $(pwd)/test/src \
--unsupported-fs btrfs \
-k "${{ matrix.centos.pytest_exclude }}" \
-v \
$(pwd)/test/