Skip to content

Commit

Permalink
Make model zoo test weekly (deepjavalibrary#1004)
Browse files Browse the repository at this point in the history
Change-Id: I1c73df17cb077b9ce8905fcc2fc8bbb37b9688d8
  • Loading branch information
frankfliu authored Jun 10, 2021
1 parent 0aec8ca commit 77809f4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import ai.djl.util.Utils;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.Calendar;
import java.util.List;
import java.util.ServiceLoader;
import org.testng.SkipException;
Expand All @@ -49,7 +50,10 @@ public void tearDown() {
@Test
public void testDownloadModels() throws IOException, ModelException {
if (!Boolean.getBoolean("nightly") || Boolean.getBoolean("offline")) {
throw new SkipException("Nightly only");
throw new SkipException("Weekly only");
}
if (Calendar.SATURDAY == Calendar.getInstance().get(Calendar.DAY_OF_WEEK)) {
throw new SkipException("Weekly only");
}

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

0 comments on commit 77809f4

Please sign in to comment.