From 109d1acb76530bdd327a8a53162b931c530bfea7 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Tue, 3 Dec 2024 15:05:36 +0100 Subject: [PATCH] Add support for testing httpd-container by Container PyTest Signed-off-by: Petr "Stone" Hracek --- .github/workflows/container-pytests.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/container-pytests.yml diff --git a/.github/workflows/container-pytests.yml b/.github/workflows/container-pytests.yml new file mode 100644 index 00000000..0a239413 --- /dev/null +++ b/.github/workflows/container-pytests.yml @@ -0,0 +1,30 @@ +on: + issue_comment: + types: + - created +jobs: + container-tests: + name: "Container PyTest: ${{ matrix.version }} - ${{ matrix.os_test }}" + runs-on: ubuntu-20.04 + concurrency: + group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} + cancel-in-progress: true + strategy: + fail-fast: false + matrix: + version: [ "2.4", "2.4-micro" ] + os_test: [ "fedora", "rhel8", "rhel9", "c9s", "c10s" ] + test_case: [ "container-pytest" ] + + if: | + github.event.issue.pull_request + && (contains(github.event.comment.body, '[test-pytest]') || contains(github.event.comment.body, '[test-all]')) + && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) + steps: + - uses: sclorg/tfaga-wrapper@main + with: + os_test: ${{ matrix.os_test }} + version: ${{ matrix.version }} + test_case: ${{ matrix.test_case }} + public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }} + private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}