@@ -18,7 +18,7 @@ concurrency:
1818
1919jobs :
2020 build_cpu_py :
21- runs-on : ubuntu-18 .04
21+ runs-on : ubuntu-22 .04
2222 strategy :
2323 matrix :
2424 python-version : [3.6, 3.8, 3.9]
2727 - torch : 1.8.1
2828 torchvision : 0.9.1
2929 steps :
30- - uses : actions/checkout@v2
30+ - uses : actions/checkout@v3
3131 - name : Set up Python ${{ matrix.python-version }}
32- uses : actions/setup-python@v2
32+ uses : actions/setup-python@v4
3333 with :
3434 python-version : ${{ matrix.python-version }}
3535 - name : Get MMCV_TORCH as the environment variable
5151 coverage xml
5252 coverage report -m
5353 build_cpu_pt :
54- runs-on : ubuntu-18 .04
54+ runs-on : ubuntu-22 .04
5555 strategy :
5656 matrix :
5757 python-version : [3.7]
7272 - torch : 1.11.0
7373 torchvision : 0.12.0
7474 steps :
75- - uses : actions/checkout@v2
75+ - uses : actions/checkout@v3
7676 - name : Set up Python ${{ matrix.python-version }}
77- uses : actions/setup-python@v2
77+ uses : actions/setup-python@v4
7878 with :
7979 python-version : ${{ matrix.python-version }}
8080 - name : Upgrade pip
@@ -107,7 +107,7 @@ jobs:
107107 uses : mxschmitt/action-tmate@v3
108108
109109 build_cu102 :
110- runs-on : ubuntu-18 .04
110+ runs-on : ubuntu-22 .04
111111 container :
112112 image : pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
113113 strategy :
@@ -117,9 +117,9 @@ jobs:
117117 - torch : 1.8.1
118118 cuda : 10.2
119119 steps :
120- - uses : actions/checkout@v2
120+ - uses : actions/checkout@v3
121121 - name : Set up Python ${{ matrix.python-version }}
122- uses : actions/setup-python@v2
122+ uses : actions/setup-python@v4
123123 with :
124124 python-version : ${{ matrix.python-version }}
125125 - name : Upgrade pip
@@ -129,7 +129,7 @@ jobs:
129129 apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
130130 apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
131131 - name : Install PyTorch
132- run : python -m pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
132+ run : pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
133133 - name : Install Python-dev
134134 run : apt-get update && apt-get install -y python${{matrix.python-version}}-dev
135135 if : ${{matrix.python-version != 3.9}}
@@ -142,8 +142,7 @@ jobs:
142142 pip install -r requirements.txt
143143 - name : Build and install
144144 run : |
145- python setup.py check -m -s
146- TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
145+ pip install -e .
147146 - name : Setup tmate session
148147 if : ${{ failure() }}
149148 uses : mxschmitt/action-tmate@v3
0 commit comments