|
63 | 63 | coverage run --branch --source mmdeploy -m pytest -rsE tests/
|
64 | 64 | coverage xml
|
65 | 65 | coverage report -m
|
66 |
| -
|
67 |
| - build_cuda111: |
68 |
| - runs-on: ubuntu-18.04 |
69 |
| - container: |
70 |
| - image: pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel |
71 |
| - |
72 |
| - strategy: |
73 |
| - matrix: |
74 |
| - python-version: [3.7] |
75 |
| - torch: |
76 |
| - [ |
77 |
| - 1.8.0+cu111, |
78 |
| - ] |
79 |
| - include: |
80 |
| - - torch: 1.8.0+cu111 |
81 |
| - torch_version: torch1.8.0 |
82 |
| - torchvision: 0.9.0+cu111 |
83 |
| - mmcv_link: "torch1.8.0" |
84 |
| - |
85 |
| - steps: |
86 |
| - - uses: actions/checkout@v2 |
87 |
| - - name: Set up Python ${{ matrix.python-version }} |
88 |
| - uses: actions/setup-python@v2 |
89 |
| - with: |
90 |
| - python-version: ${{ matrix.python-version }} |
91 |
| - - name: Install system dependencies |
92 |
| - run: | |
93 |
| - apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 python${{matrix.python-version}}-dev |
94 |
| - apt-get clean |
95 |
| - rm -rf /var/lib/apt/lists/* |
96 |
| - - name: Install PyTorch |
97 |
| - run: python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html |
98 |
| - - name: Install dependencies |
99 |
| - run: | |
100 |
| - python -V |
101 |
| - python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/${{matrix.mmcv_link}}/index.html |
102 |
| - python -m pip install pycocotools |
103 |
| - python -m pip install -r requirements.txt |
104 |
| - python -c 'import mmcv; print(mmcv.__version__)' |
105 |
| - - name: Build and install |
106 |
| - run: | |
107 |
| - rm -rf .eggs |
108 |
| - python setup.py check -m -s |
109 |
| - TORCH_CUDA_ARCH_LIST=7.0 pip install . |
110 |
| - - name: Run unittests and generate coverage report |
111 |
| - run: | |
112 |
| - coverage run --branch --source mmdeploy -m pytest -rsE tests/ |
113 |
| - coverage xml |
114 |
| - coverage report -m |
115 |
| - - name: Upload coverage to Codecov |
116 |
| - |
117 |
| - with: |
118 |
| - file: ./coverage.xml |
119 |
| - flags: unittests |
120 |
| - env_vars: OS,PYTHON |
121 |
| - name: codecov-umbrella |
122 |
| - fail_ci_if_error: false |
0 commit comments