File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : test-mim
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' model-index.yml'
7
+ - ' configs/**'
8
+
9
+ pull_request :
10
+ paths :
11
+ - ' model-index.yml'
12
+ - ' configs/**'
13
+
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
17
+
18
+ jobs :
19
+ build_cpu :
20
+ runs-on : ubuntu-18.04
21
+ strategy :
22
+ matrix :
23
+ python-version : [3.7]
24
+ torch : [1.8.0]
25
+ include :
26
+ - torch : 1.8.0
27
+ torch_version : torch1.8
28
+ torchvision : 0.9.0
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - name : Set up Python ${{ matrix.python-version }}
32
+ uses : actions/setup-python@v2
33
+ with :
34
+ python-version : ${{ matrix.python-version }}
35
+ - name : Upgrade pip
36
+ run : pip install pip --upgrade
37
+ - name : Install Pillow
38
+ run : pip install Pillow==6.2.2
39
+ if : ${{matrix.torchvision == '0.4.2'}}
40
+ - name : Install PyTorch
41
+ run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
42
+ - name : Install openmim
43
+ run : pip install openmim
44
+ - name : Build and install
45
+ run : rm -rf .eggs && mim install -e .
46
+ - name : test commands of mim
47
+ run : mim search mmsegmentation
You can’t perform that action at this time.
0 commit comments