From d1eb88f42def4f7eafcf316feed137912ed522fa Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Wed, 17 Feb 2021 14:12:39 -0800 Subject: [PATCH] [CI] 2 fixes (#10248) * fix invalid port * missing requirements --- .github/workflows/self-scheduled.yml | 1 + examples/tests/deepspeed/test_deepspeed.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 71977f500..2708566dd 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -250,6 +250,7 @@ jobs: RUN_SLOW: yes run: | source .env/bin/activate + pip install -r examples/_tests_requirements.txt python -m pytest -n 1 --dist=loadfile -s --make-reports=tests_torch_examples_multi_gpu examples - name: Failure short reports diff --git a/examples/tests/deepspeed/test_deepspeed.py b/examples/tests/deepspeed/test_deepspeed.py index 323e3b86d..d6b2bea6a 100644 --- a/examples/tests/deepspeed/test_deepspeed.py +++ b/examples/tests/deepspeed/test_deepspeed.py @@ -57,7 +57,7 @@ def require_deepspeed(test_case): class TestDeepSpeed(TestCasePlus): # this setup emulates a notebook where a launcher needs to be emulated by hand - @mockenv(MASTER_ADDR="localhost", MASTER_PORT="109999", RANK="0", LOCAL_RANK="0", WORLD_SIZE="1") + @mockenv(MASTER_ADDR="localhost", MASTER_PORT="10999", RANK="0", LOCAL_RANK="0", WORLD_SIZE="1") def test_fake_notebook_no_launcher(self): sys.path.append(self.tests_dir_str) from test_trainer import get_regression_trainer