@@ -47,11 +47,58 @@ jobs:
47
47
- uses : actions/checkout@v2
48
48
- name : Set up Python ${{ matrix.python-version }}
49
49
uses : actions/setup-python@v2
50
+ env :
51
+ AGENT_TOOLSDIRECTORY : /opt/hostedtoolcache
50
52
with :
51
53
python-version : ${{ matrix.python-version }}
52
54
- name : do_benchmark
53
55
run : |
54
56
python -m pip install .
55
57
python -m pip install ".[test,k8s]"
56
58
./ding/scripts/install-k8s-tools.sh
57
- make benchmark
59
+ make benchmark
60
+
61
+ test_multiprocess :
62
+ runs-on : self-hosted
63
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
64
+ strategy :
65
+ matrix :
66
+ python-version : ["3.7", "3.8", "3.9"]
67
+ steps :
68
+ - uses : actions/checkout@v3
69
+ - name : Set up Python ${{ matrix.python-version }}
70
+ uses : actions/setup-python@v3
71
+ with :
72
+ python-version : ${{ matrix.python-version }}
73
+ - name : do_multiprocesstest
74
+ timeout-minutes : 40
75
+ run : |
76
+ python -m pip install box2d-py
77
+ python -m pip install .
78
+ python -m pip install ".[test,k8s]"
79
+ ./ding/scripts/install-k8s-tools.sh
80
+ make multiprocesstest
81
+
82
+ test_cuda :
83
+ runs-on : self-hosted
84
+ if : " !contains(github.event.head_commit.message, 'ci skip')"
85
+ strategy :
86
+ matrix :
87
+ python-version : ["3.7", "3.8", "3.9"]
88
+ steps :
89
+ - uses : actions/checkout@v3
90
+ - name : Set up Python ${{ matrix.python-version }}
91
+ uses : actions/setup-python@v3
92
+ env :
93
+ AGENT_TOOLSDIRECTORY : /opt/hostedtoolcache
94
+ with :
95
+ python-version : ${{ matrix.python-version }}
96
+ - name : do_unittest
97
+ timeout-minutes : 40
98
+ run : |
99
+ python -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
100
+ python -m pip install box2d-py
101
+ python -m pip install .
102
+ python -m pip install ".[test,k8s]"
103
+ ./ding/scripts/install-k8s-tools.sh
104
+ make cudatest
0 commit comments