From 82c68d5806706d8df5c7e5486cbf29885ca6edf1 Mon Sep 17 00:00:00 2001 From: ly015 Date: Wed, 22 Jun 2022 23:23:22 +0800 Subject: [PATCH 1/2] add mim test workflow --- .github/workflows/test_mim.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/test_mim.yml diff --git a/.github/workflows/test_mim.yml b/.github/workflows/test_mim.yml new file mode 100644 index 0000000000..81d862d41e --- /dev/null +++ b/.github/workflows/test_mim.yml @@ -0,0 +1,47 @@ +name: test-mim + +on: + push: + paths: + - 'model-index.yml' + - 'configs/**' + + pull_request: + paths: + - 'model-index.yml' + - 'configs/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build_cpu: + runs-on: ubuntu-18.04 + strategy: + matrix: + python-version: [3.7] + torch: [1.8.0] + include: + - torch: 1.8.0 + torch_version: torch1.8 + torchvision: 0.9.0 + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Upgrade pip + run: pip install pip --upgrade + - name: Install Pillow + run: pip install Pillow==6.2.2 + if: ${{matrix.torchvision == '0.4.2'}} + - name: Install PyTorch + run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html + - name: Install openmim + run: pip install openmim + - name: Build and install + run: rm -rf .eggs && mim install -e . + - name: test commands of mim + run: mim search mmaction2 \ No newline at end of file From e545db7a20e2e5c522c996bde368a0e9562ef09a Mon Sep 17 00:00:00 2001 From: ly015 Date: Thu, 23 Jun 2022 10:39:57 +0800 Subject: [PATCH 2/2] fix lint --- .github/workflows/test_mim.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_mim.yml b/.github/workflows/test_mim.yml index 81d862d41e..88594d0e77 100644 --- a/.github/workflows/test_mim.yml +++ b/.github/workflows/test_mim.yml @@ -44,4 +44,4 @@ jobs: - name: Build and install run: rm -rf .eggs && mim install -e . - name: test commands of mim - run: mim search mmaction2 \ No newline at end of file + run: mim search mmaction2