From 23aca1e4c5ad0b5ddaec5726086e0d139eddb2bc Mon Sep 17 00:00:00 2001 From: Ben Howe <141149032+bmhowe23@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:29:45 -0500 Subject: [PATCH] Exclude tutorial-specific Python files from integration tests and NVQC tests (#2078) --- .github/workflows/integration_tests.yml | 4 ++-- .github/workflows/nvqc_regression_tests.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 4283927623..25bb6a9eb9 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -617,7 +617,7 @@ jobs: # Test NVQC Python examples + Python MLIR execution tests (not IR tests) python3 -m pip install pytest - for ex in `find examples/python python/tests/mlir/target -name '*.py'`; do + for ex in `find examples/python python/tests/mlir/target -name '*.py' -not -path '*/python/tutorials/*'`; do filename=$(basename -- "$ex") filename="${filename%.*}" echo "Testing $filename:" @@ -734,7 +734,7 @@ jobs: set +e # Allow script to keep going through errors python$python_version -m pip install pytest test_err_sum=0 - for ex in `find examples/python python/tests/mlir/target -name '*.py'`; do + for ex in `find examples/python python/tests/mlir/target -name '*.py' -not -path '*/python/tutorials/*'`; do filename=$(basename -- "$ex") filename="${filename%.*}" echo "Testing $filename:" diff --git a/.github/workflows/nvqc_regression_tests.yml b/.github/workflows/nvqc_regression_tests.yml index afa4f006bf..da525ec0d2 100644 --- a/.github/workflows/nvqc_regression_tests.yml +++ b/.github/workflows/nvqc_regression_tests.yml @@ -192,7 +192,7 @@ jobs: # Test NVQC Python examples + Python MLIR execution tests (not IR tests) python3 -m pip install pytest - for ex in `find examples/python python/tests/mlir/target -name '*.py'`; do + for ex in `find examples/python python/tests/mlir/target -name '*.py' -not -path '*/python/tutorials/*'`; do filename=$(basename -- "$ex") filename="${filename%.*}" echo "Testing $filename:" @@ -306,7 +306,7 @@ jobs: set +e # Allow script to keep going through errors python$python_version -m pip install pytest test_err_sum=0 - for ex in `find examples/python python/tests/mlir/target -name '*.py'`; do + for ex in `find examples/python python/tests/mlir/target -name '*.py' -not -path '*/python/tutorials/*'`; do filename=$(basename -- "$ex") filename="${filename%.*}" echo "Testing $filename:"