Commit c606fdf4 authored by Yanghan Wang's avatar Yanghan Wang Committed by Facebook GitHub Bot
Browse files

small fixes of github CI

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/662

- d2go: aws model zoo is not available anymore, disable the test in oss.
- d2: scripts running at midnight hitting rate limit issue, change it to a random time.

Differential Revision: D57085427

fbshipit-source-id: 8dc24b2a7996c8ae5ed8808c3301af2851c15a14
parent aa7716be
...@@ -42,6 +42,6 @@ jobs: ...@@ -42,6 +42,6 @@ jobs:
run: | run: |
D2GO_IMPORT_SKIP_INITIALIZATION=1 python -m pytest -n 4 --durations=15 -sv tests/skip_init/ D2GO_IMPORT_SKIP_INITIALIZATION=1 python -m pytest -n 4 --durations=15 -sv tests/skip_init/
- name: Test Notebooks # - name: Test Notebooks
run: | # run: |
find . -name *.ipynb | CI=true xargs pytest --nbval-lax --current-env # find . -name *.ipynb | CI=true xargs pytest --nbval-lax --current-env
...@@ -5,9 +5,11 @@ import unittest ...@@ -5,9 +5,11 @@ import unittest
import torch.nn as nn import torch.nn as nn
from d2go.model_zoo import model_zoo from d2go.model_zoo import model_zoo
from mobile_cv.common.misc.oss_utils import is_oss
class TestD2GoModelZoo(unittest.TestCase): class TestD2GoModelZoo(unittest.TestCase):
@unittest.skipIf(is_oss(), "Model Zoo is not available in OSS")
def test_model_zoo_pretrained(self): def test_model_zoo_pretrained(self):
configs = list(model_zoo._ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX.keys()) configs = list(model_zoo._ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX.keys())
for cfgfile in configs: for cfgfile in configs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment