55jobs :
66 tests :
77 runs-on : ${{ matrix.os }}
8- name : Python ${{ matrix.python-version }} on ${{ matrix.os }}
8+ name : Python ${{ matrix.python-version }} on ${{ matrix.os }} ${{ matrix.container }}
99 strategy :
1010 fail-fast : false
1111 matrix :
12- os : [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04]
13- python-version : [3.6.8, 3.7.6]
12+ os : [ubuntu-18.04, ubuntu-20.04]
13+ python-version : [3.6.8, 3.7.6, 3.8.5 ]
1414 exclude :
15- - os : windows-2019
16- python-version : 3.7.6
17- - os : macos-10.15
18- python-version : 3.7.6
15+ # - os: windows-2019
16+ # python-version: 3.7.6
17+ # - os: macos-10.15
18+ # python-version: 3.7.6
1919 - os : ubuntu-20.04
2020 python-version : 3.7.6
21+ # - os: windows-2019
22+ # python-version: 3.8.5
23+ # - os: macos-10.15
24+ # python-version: 3.8.5
25+ - os : ubuntu-20.04
26+ python-version : 3.8.5
27+ include :
28+ - os : ubuntu-20.04
29+ python-version : 3.6.8
30+ container : Docker
31+
2132 steps :
2233 - uses : actions/checkout@v2
2334
@@ -26,41 +37,41 @@ jobs:
2637 with :
2738 python-version : ${{ matrix.python-version }}
2839
29- - name : win setup MSVC
30- if : contains(matrix.os, 'windows')
31- uses : microsoft/setup-msbuild@v1
40+ # - name: win setup MSVC
41+ # if: contains(matrix.os, 'windows')
42+ # uses: microsoft/setup-msbuild@v1
3243
33- - name : win run tests
34- if : contains(matrix.os, 'windows')
35- shell : bash
36- run : |
37- powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'"
38- powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'"
39- powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'"
40- powershell Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE
41- pip3 install setuptools wheel
42- pip3 install .
43- cmd.exe //C 'examples\scripts\dllscollector.bat'
44- cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin
45- unzip -Pinfected wannacry.bin.zip
46- unzip -Pinfected UselessDisk.bin.zip
47- unzip -Pinfected GandCrab502.bin.zip
48- unzip -Pinfected al-khaser.bin.zip
49- unzip -Pinfected sality.dll.zip
50- cd $GITHUB_WORKSPACE/tests
51- cmd.exe //C '.\test_pe.bat'
52- - name : mac run tests
53- if : contains(matrix.os, 'macos')
54- continue-on-error : true
55- shell : bash
56- run : |
57- pip3 install setuptools wheel
58- pip3 install .
59- ./examples/scripts/dylibcollector.sh
60- cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext
61- unzip -Pinfected SuperRootkit.kext.zip
62- cd $GITHUB_WORKSPACE/tests
63- ./test_macho.sh
44+ # - name: win run tests
45+ # if: contains(matrix.os, 'windows')
46+ # shell: bash
47+ # run: |
48+ # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'"
49+ # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'"
50+ # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'"
51+ # powershell Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE
52+ # pip3 install setuptools wheel
53+ # pip3 install .
54+ # cmd.exe //C 'examples\scripts\dllscollector.bat'
55+ # cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin
56+ # unzip -Pinfected wannacry.bin.zip
57+ # unzip -Pinfected UselessDisk.bin.zip
58+ # unzip -Pinfected GandCrab502.bin.zip
59+ # unzip -Pinfected al-khaser.bin.zip
60+ # unzip -Pinfected sality.dll.zip
61+ # cd $GITHUB_WORKSPACE/tests
62+ # cmd.exe //C '.\test_pe.bat'
63+ # - name: mac run tests
64+ # if: contains(matrix.os, 'macos')
65+ # continue-on-error: true
66+ # shell: bash
67+ # run: |
68+ # pip3 install setuptools wheel
69+ # pip3 install .
70+ # ./examples/scripts/dylibcollector.sh
71+ # cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext
72+ # unzip -Pinfected SuperRootkit.kext.zip
73+ # cd $GITHUB_WORKSPACE/tests
74+ # ./test_macho.sh
6475 - name : linux run tests
6576 if : contains(matrix.os, 'ubuntu')
6677 shell : ' script -q -e -c "bash {0}"'
@@ -69,11 +80,13 @@ jobs:
6980 pip3 install setuptools wheel flake8
7081 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
7182 pip3 install .
72- cd tests && ./test_elf.sh
83+ cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
84+ cd ../../../../tests && ./test_elf.sh
7385 elif [ ${{ matrix.os }} == 'ubuntu-20.04' ]; then
74- docker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "pip3 install . && cd tests && ./test_elf.sh"
86+ docker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "pip3 install . && cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip && cd ../../../../ tests && ./test_elf.sh"
7587 else
7688 pip3 install setuptools wheel
7789 pip3 install .
78- cd tests && ./test_elf.sh
90+ cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
91+ cd ../../../../tests && ./test_elf.sh
7992 fi
0 commit comments