Skip to content

Commit d58da60

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Add option to skip certain unit tests
Differential Revision: D72815908
1 parent d686bb1 commit d58da60

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/scripts/tests_to_skip.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test_sharding_fused_ebc_as_top_level

.github/workflows/unittest_ci_cpu.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
python -c "import numpy"
7373
echo "numpy succeeded"
7474
conda install -n build_binary -y pytest
75+
skip_expression=$(awk '{printf " and not %s", $0}' ./.github/scripts/tests_to_skip.txt)
76+
skip_expression=${skip_expression:5} # Remove the leading " and "
7577
conda run -n build_binary \
7678
python -m pytest torchrec -v -s -W ignore::pytest.PytestCollectionWarning --continue-on-collection-errors \
77-
--ignore-glob=**/test_utils/
79+
--ignore-glob=**/test_utils/ -k "$skip_expression"

0 commit comments

Comments
 (0)