Skip to content

Commit 21dd6d3

Browse files
committed
Update smoke_test.yml
1 parent 9a5ee8a commit 21dd6d3

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

.github/workflows/smoke_test.yml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,10 @@ jobs:
4141
python -m pip install --upgrade pipenv wheel
4242
4343
- name: Install dependencies
44-
- run: |
45-
pipenv install --dev --skip-lock
46-
pipenv install pytest-cov ciphey frida --skip-lock
47-
pip install meson==0.62.0 ninja
48-
if: matrix.os != 'windows-latest'
49-
- run: |
44+
run: |
5045
python -m pipenv install --dev --skip-lock
5146
python -m pipenv install pytest-cov ciphey frida --skip-lock
5247
python -m pip install meson==0.62.0 ninja
53-
if: matrix.os == 'windows-latest'
54-
5548
- run: sudo apt-get -y install graphviz ninja-build
5649
if: matrix.os == 'ubuntu-latest'
5750
- run: brew install graphviz ninja
@@ -61,48 +54,24 @@ jobs:
6154

6255
# Download the latest rule set
6356
- name: Download rule from https://github.com/quark-engine/quark-rules
64-
- run: pipenv run freshquark
65-
if: matrix.os != 'windows-latest'
66-
- run: python -m pipenv run freshquark
67-
if: matrix.os == 'windows-latest'
68-
57+
run: python -m pipenv run freshquark
6958

7059
# Runs a set of commands using the quark-engine
7160
- name: Run a multi-line script
72-
- run: |
73-
pipenv run quark --help
74-
git clone https://github.com/quark-engine/apk-malware-samples
75-
pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
76-
pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
77-
pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
78-
pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
79-
pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
80-
if: matrix.os != 'windows-latest'
81-
82-
- run: |
61+
run: |
8362
python -m pipenv run quark --help
8463
git clone https://github.com/quark-engine/apk-malware-samples
8564
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
8665
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
8766
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
8867
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
8968
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
90-
if: matrix.os == 'windows-latest'
91-
9269
- name: Check Accuracy
9370
shell: bash
94-
- run: |
95-
echo "Ahmyth_RESULT=$(pipenv run quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
96-
echo "a4db_RESULT=$(pipenv run quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
97-
echo "e273e_RESULT=$(pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
98-
if: matrix.os != 'windows-latest'
99-
100-
- run: |
71+
run: |
10172
echo "Ahmyth_RESULT=$(python -m pipenv run quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
10273
echo "a4db_RESULT=$(python -m pipenv run quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
10374
echo "e273e_RESULT=$(python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
104-
if: matrix.os == 'windows-latest'
105-
10675
- name: Check Ahmyt Result
10776
shell: bash
10877
# This sample should have 16 behaviors with 100% confidence
@@ -112,7 +81,6 @@ jobs:
11281
else
11382
exit 1
11483
fi
115-
11684
- name: Check 13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk Result
11785
shell: bash
11886
# This sample should have 11 behaviors with 100% confidence
@@ -122,7 +90,6 @@ jobs:
12290
else
12391
exit 1
12492
fi
125-
12693
- name: Check 14d9f1a92dd984d6040cc41ed06e273e.apk Result
12794
shell: bash
12895
# This sample should have 15 behaviors with 100% confidence

0 commit comments

Comments
 (0)