diff --git a/.github/workflows/container-pytests.yml b/.github/workflows/container-pytests.yml new file mode 100644 index 00000000..316751e4 --- /dev/null +++ b/.github/workflows/container-pytests.yml @@ -0,0 +1,30 @@ +on: + issue_comment: + types: + - created +jobs: + container-tests: + runs-on: ubuntu-latest + name: "Container PyTests: ${{ matrix.version }} - ${{ matrix.os_test }}" + concurrency: + group: container-pytest-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} + cancel-in-progress: true + strategy: + fail-fast: false + matrix: + version: [ "2.5", "3.0", "3.3" ] + os_test: [ "fedora", "rhel8", "rhel9", "rhel10", "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 }}