Skip to content

Commit 142bce9

Browse files
committed
modify test_learner_with_coordinator loop range and remove python3.7 from cudatest
1 parent dcc0a1a commit 142bce9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/unit_test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
if: "!contains(github.event.head_commit.message, 'ci skip')"
6464
strategy:
6565
matrix:
66-
python-version: ["3.7", "3.8", "3.9"]
66+
python-version: ["3.8", "3.9"]
6767
steps:
6868
- uses: actions/checkout@v2
6969
- name: Set up Python ${{ matrix.python-version }}
@@ -84,7 +84,7 @@ jobs:
8484
if: "!contains(github.event.head_commit.message, 'ci skip')"
8585
strategy:
8686
matrix:
87-
python-version: ["3.7", "3.8", "3.9"]
87+
python-version: ["3.8", "3.9"]
8888
steps:
8989
- uses: actions/checkout@v2
9090
- name: Set up Python ${{ matrix.python-version }}

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ WORKERS_COMMAND := $(if ${WORKERS},-n ${WORKERS} --dist=loadscope,)
1717
DURATIONS ?= 10
1818
DURATIONS_COMMAND := $(if ${DURATIONS},--durations=${DURATIONS},)
1919

20+
TIMEOUT_LIMIT ?= 300
21+
2022
docs:
2123
$(MAKE) -C ${DING_DIR}/docs html
2224

2325
unittest:
2426
pytest ${TEST_DIR} \
25-
--timeout=180 \
27+
--timeout=${TIMEOUT_LIMIT} \
2628
--cov-report=xml \
2729
--cov-report term-missing \
2830
--cov=${COV_DIR} \
@@ -37,7 +39,7 @@ algotest:
3739

3840
cudatest:
3941
pytest ${TEST_DIR} \
40-
--timeout=180 \
42+
--timeout=${TIMEOUT_LIMIT} \
4143
-sv -m cudatest
4244

4345
envpooltest:

ding/worker/learner/comm/tests/test_learner_with_coordinator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup_config():
1717
cfg = compile_config_parallel(
1818
parallel_test_main_config, create_cfg=parallel_test_create_config, system_cfg=parallel_test_system_config
1919
)
20-
cfg.main.policy.learn.learner.train_iterations = 100
20+
cfg.main.policy.learn.learner.train_iterations = 10
2121
return cfg
2222

2323

0 commit comments

Comments
 (0)