Skip to content

Commit

Permalink
Revert "Add Pytests to OpenShift-tests"
Browse files Browse the repository at this point in the history
This reverts commit 84f9b1e.
  • Loading branch information
phracek committed Jun 12, 2024
1 parent 84f9b1e commit 19edd65
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/openshift-pytests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
issue_comment:
types:
- created
jobs:
check-imagestreams:
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift-pytest]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/ci-scripts/ocp-stream-generator@master
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"

openshift-pytests:
name: "${{ matrix.test_case }} PyTests: ${{ matrix.version }} - ${{ matrix.os_test }}"
runs-on: ubuntu-latest
needs: check-imagestreams
concurrency:
group: ocp-pytest-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
version: [ "2.4" ]
os_test: [ "rhel8", "rhel9"]
test_case: [ "openshift-pytest" ]

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 }}
5 changes: 1 addition & 4 deletions .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ jobs:
matrix:
version: [ "2.4" ]
os_test: [ "rhel7", "rhel8", "rhel9"]
test_case: [ "openshift-4", "openshift-pytest" ]
exclude:
- test_case: "openshift-pytest"
os_test: "rhel7"
test_case: [ "openshift-4" ]

steps:
- uses: sclorg/tfaga-wrapper@main
Expand Down

0 comments on commit 19edd65

Please sign in to comment.