Skip to content

Commit 5139af3

Browse files
Add support for testing experimental features (#4082)
1 parent 2f46c18 commit 5139af3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test precommit common_tests slow_tests test_examples tests_gpu
1+
.PHONY: test precommit common_tests slow_tests test_examples tests_gpu test_experimental
22

33
check_dirs := examples tests trl
44

@@ -28,3 +28,6 @@ test_examples:
2828
TRL_ACCELERATE_CONFIG=$${file} bash $(COMMAND_FILES_PATH)/run_dpo.sh; \
2929
echo $$?','$${file} >> temp_results_dpo_tests.txt; \
3030
done
31+
32+
test_experimental:
33+
pytest -k "experimental"

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ markers = [
2828
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
2929
"low-priority: marks tests as low priority (deselect with '-m \"not low-priority\"')"
3030
]
31+
addopts = [
32+
"-k", "not experimental",
33+
]

0 commit comments

Comments
 (0)