From 59fe9cc210cfa86056dbe05d8b66911d22cb6b6a Mon Sep 17 00:00:00 2001 From: xwings Date: Sun, 10 Oct 2021 14:14:34 +0800 Subject: [PATCH] docker test --- .github/workflows/build-ci.yml | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index eedb20fa..0eb7b3d4 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -11,21 +11,15 @@ jobs: matrix: #os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04] os: [windows-2019, ubuntu-18.04, ubuntu-20.04] - python-version: [3.7, 3.8, 3.9] + python-version: [3.8, 3.9] exclude: - - os: ubuntu-20.04 - python-version: 3.7 - os: ubuntu-18.04 - python-version: 3.7 - - os: ubuntu-18.04 - python-version: 3.9 - - os: windows-2019 - python-version: 3.7 - # - os: macos-10.15 - # python-version: 3.8 - include: - - os: ubuntu-20.04 python-version: 3.8 + - os: ubuntu-18.04 + python-version: 3.9 + include: + - os: ubuntu-18.04 + python-version: 3.9 container: Docker steps: @@ -93,15 +87,12 @@ jobs: cd ../../../../ pip3 install -e .[evm] - pip3 install setuptools wheel - cd tests && ./test_onlinux.sh - - # if [ ${{ matrix.os }} == 'ubuntu-20.04' ]; then - # docker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "cd tests && ./test_onlinux.sh" - # else - # pip3 install setuptools wheel - # cd tests && ./test_onlinux.sh - # fi + if [ ${{ matrix.os }} == 'ubuntu-18.04' ]; then + ddocker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "cd tests && ./test_onlinux.sh" + else + pip3 install setuptools wheel + cd tests && ./test_onlinux.sh + fi # - name: mac run tests