File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -214,3 +214,39 @@ jobs:
214214 env_vars : OS,PYTHON
215215 name : codecov-umbrella
216216 fail_ci_if_error : false
217+
218+ test_windows :
219+ runs-on : ${{ matrix.os }}
220+ strategy :
221+ matrix :
222+ os : [windows-2022]
223+ python : [3.8]
224+ platform : [cpu, cu111]
225+ steps :
226+ - uses : actions/checkout@v2
227+ - name : Set up Python ${{ matrix.python }}
228+ uses : actions/setup-python@v2
229+ with :
230+ python-version : ${{ matrix.python }}
231+ - name : Upgrade pip
232+ run : pip install pip --upgrade --user
233+ - name : Install OpenCV
234+ run : pip install opencv-python>=3
235+ - name : Install PyTorch
236+ # As a complement to Linux CI, we test on PyTorch LTS version
237+ run : pip install torch==1.8.2+${{ matrix.platform }} torchvision==0.9.2+${{ matrix.platform }} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
238+ - name : Install MMCV
239+ run : |
240+ pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.8/index.html --only-binary mmcv-full
241+ - name : Install unittest dependencies
242+ run : pip install -r requirements/tests.txt -r requirements/optional.txt
243+ - name : Build and install
244+ run : pip install -e .
245+ - name : Run unittests
246+ run : |
247+ python -m pip install timm
248+ coverage run --branch --source mmseg -m pytest tests/
249+ - name : Generate coverage report
250+ run : |
251+ coverage xml
252+ coverage report -m
Original file line number Diff line number Diff line change 11codecov
22flake8
33interrogate
4- isort==4.3.21
54pytest
65xdoctest>=0.10.0
76yapf
You can’t perform that action at this time.
0 commit comments