Skip to content

Commit 47e853d

Browse files
committed
Make model zoo test weekly
Change-Id: I1c73df17cb077b9ce8905fcc2fc8bbb37b9688d8
1 parent d8e7e1d commit 47e853d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration/src/main/java/ai/djl/integration/tests/model_zoo/ModelZooTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import ai.djl.util.Utils;
2424
import java.io.IOException;
2525
import java.nio.file.Paths;
26+
import java.util.Calendar;
2627
import java.util.List;
2728
import java.util.ServiceLoader;
2829
import org.testng.SkipException;
@@ -49,7 +50,10 @@ public void tearDown() {
4950
@Test
5051
public void testDownloadModels() throws IOException, ModelException {
5152
if (!Boolean.getBoolean("nightly") || Boolean.getBoolean("offline")) {
52-
throw new SkipException("Nightly only");
53+
throw new SkipException("Weekly only");
54+
}
55+
if (Calendar.SATURDAY == Calendar.getInstance().get(Calendar.DAY_OF_WEEK)) {
56+
throw new SkipException("Weekly only");
5357
}
5458

5559
ServiceLoader<ZooProvider> providers = ServiceLoader.load(ZooProvider.class);

0 commit comments

Comments
 (0)