Skip to content

Commit

Permalink
Add skip gl flag
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Oct 17, 2024
1 parent 8f5447c commit 392de00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/scripts/get_tests_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("--tests", nargs="*")
parser.add_argument("--buses", nargs="*")
parser.add_argument("--skip-gl")
args = parser.parse_args()
tests = args.tests
buses = args.buses
tests = " ".join(tests).split(",")
output_matrix = {"tests": []}
for test in tests:
output_matrix["tests"].append({"test": test, "tag": "RTL"})
gl_tests = []
for name in test.split():
gl_tests.append(f"gl_{name}")
output_matrix["tests"].append({"test": " ".join(gl_tests), "tag": "GL"})
if args.skip_gl.lower() != "yes":
gl_tests = []
for name in test.split():
gl_tests.append(f"gl_{name}")
output_matrix["tests"].append({"test": " ".join(gl_tests), "tag": "GL"})

output_matrix_with_buses = {"tests": []}
for bus in buses:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/run_IP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
description: 'Bus Types'
required: true
type: string
skip-gl:
description: 'Skip GL Tests'
required: false
type: string
default: no
jobs:
Setup-Work-Space:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,8 +102,8 @@ jobs:
- name: Set Tests Matrix
id: set-tests-matrix
run: |
python3 ${{ env.EF_UVM_PATH }}/.github/scripts/get_tests_matrix.py --tests ${{ inputs.test-names }} --buses ${{ inputs.buses }}
echo "tests=$(python3 ${{ env.EF_UVM_PATH }}/.github/scripts/get_tests_matrix.py --tests ${{ inputs.test-names }} --buses ${{ inputs.buses }})" >> "$GITHUB_OUTPUT"
python3 ${{ env.EF_UVM_PATH }}/.github/scripts/get_tests_matrix.py --tests ${{ inputs.test-names }} --buses ${{ inputs.buses }} --skip-gl ${{ inputs.skip-gl }}
echo "tests=$(python3 ${{ env.EF_UVM_PATH }}/.github/scripts/get_tests_matrix.py --tests ${{ inputs.test-names }} --buses ${{ inputs.buses }}) --skip-gl ${{ inputs.skip-gl }}" >> "$GITHUB_OUTPUT"
Run-IP:
needs: [Setup-Work-Space, Prepare-Tests-Matrix]
Expand Down

0 comments on commit 392de00

Please sign in to comment.