Unverified Commit 6fc6f75a authored by ZhangShilong's avatar ZhangShilong Committed by GitHub
Browse files

use ubuntu-18.04 in ci (#883)

parent a4bb2c5b
...@@ -7,7 +7,7 @@ env: ...@@ -7,7 +7,7 @@ env:
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.7 - name: Set up Python 3.7
...@@ -28,7 +28,7 @@ jobs: ...@@ -28,7 +28,7 @@ jobs:
style: google style: google
build_without_torch: build_without_torch:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
...@@ -51,7 +51,7 @@ jobs: ...@@ -51,7 +51,7 @@ jobs:
pytest tests/ --ignore=tests/test_runner --ignore=tests/test_optimizer.py --ignore=tests/test_cnn --ignore=tests/test_parallel.py --ignore=tests/test_ops --ignore=tests/test_load_model_zoo.py --ignore=tests/test_utils/test_logging.py --ignore=tests/test_image/test_io.py --ignore=tests/test_utils/test_registry.py --ignore=tests/test_utils/test_parrots_jit.py pytest tests/ --ignore=tests/test_runner --ignore=tests/test_optimizer.py --ignore=tests/test_cnn --ignore=tests/test_parallel.py --ignore=tests/test_ops --ignore=tests/test_load_model_zoo.py --ignore=tests/test_utils/test_logging.py --ignore=tests/test_image/test_io.py --ignore=tests/test_utils/test_registry.py --ignore=tests/test_utils/test_parrots_jit.py
build_without_ops: build_without_ops:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
env: env:
MMCV_WITH_OPS: 0 MMCV_WITH_OPS: 0
strategy: strategy:
...@@ -81,7 +81,7 @@ jobs: ...@@ -81,7 +81,7 @@ jobs:
pytest tests/ --ignore=tests/test_ops pytest tests/ --ignore=tests/test_ops
build_cpu: build_cpu:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
...@@ -122,7 +122,7 @@ jobs: ...@@ -122,7 +122,7 @@ jobs:
coverage report -m coverage report -m
build_cuda: build_cuda:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
env: env:
CUDA: 10.1.105-1 CUDA: 10.1.105-1
CUDA_SHORT: 10.1 CUDA_SHORT: 10.1
......
...@@ -7,7 +7,7 @@ env: ...@@ -7,7 +7,7 @@ env:
jobs: jobs:
build_parrots: build_parrots:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
container: container:
image: ghcr.io/sunnyxiaohu/parrots-mmcv:1.2.1 image: ghcr.io/sunnyxiaohu/parrots-mmcv:1.2.1
credentials: credentials:
......
...@@ -4,7 +4,7 @@ on: push ...@@ -4,7 +4,7 @@ on: push
jobs: jobs:
build-n-publish: build-n-publish:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
if: startsWith(github.event.ref, 'refs/tags') if: startsWith(github.event.ref, 'refs/tags')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -20,7 +20,7 @@ jobs: ...@@ -20,7 +20,7 @@ jobs:
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }} twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
build-n-publish_with_ops: build-n-publish_with_ops:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
if: startsWith(github.event.ref, 'refs/tags') if: startsWith(github.event.ref, 'refs/tags')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment