Skip to content

Commit 88a8c1e

Browse files
committed
Update smoke_test.yml
1 parent 09aa29f commit 88a8c1e

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.github/workflows/smoke_test.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,48 @@ jobs:
3232
uses: actions/setup-python@v4
3333
with:
3434
python-version: ${{ matrix.python-version }}
35-
cache: 'pipenv'
36-
cache-dependency-path: |
37-
**/Pipfile.lock
38-
39-
- name: Install pipenv
40-
run: |
41-
python -m pip install --upgrade pip --force-reinstall
42-
python -m pip install --upgrade pipenv wheel
35+
cache: 'pip'
4336

4437
- name: Install dependencies
4538
run: |
46-
python -m pipenv install --dev --skip-lock
47-
python -m pipenv install pytest-cov ciphey frida --skip-lock
48-
python -m pip install meson==0.62.0 ninja
39+
python -m pip install --upgrade pip
40+
python -m pip install ciphey frida objection
41+
python -m pip install black pytest sphinx sphinx-rtd-theme
42+
# Install click >= 8.0.0 for CLI supports
43+
python -m pip install click==8.0.3
44+
4945
- run: sudo apt-get -y install graphviz ninja-build
5046
if: matrix.os == 'ubuntu-latest'
5147
- run: brew install graphviz ninja
5248
if: matrix.os == 'macOS-latest'
5349
- run: choco install graphviz ninja
5450
if: matrix.os == 'windows-latest'
5551

52+
- name: Install Quark-Engine
53+
run: |
54+
python setup.py build
55+
python setup.py install
56+
5657
# Download the latest rule set
5758
- name: Download rule from https://github.com/quark-engine/quark-rules
58-
run: python -m pipenv run freshquark
59+
run: freshquark
5960

6061
# Runs a set of commands using the quark-engine
6162
- name: Run a multi-line script
6263
run: |
63-
python -m pipenv run quark --help
64+
quark --help
6465
git clone https://github.com/quark-engine/apk-malware-samples
65-
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
66-
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
67-
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
68-
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
69-
python -m pipenv run quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
66+
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s
67+
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d
68+
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
69+
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
70+
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
7071
- name: Check Accuracy
7172
shell: bash
7273
run: |
73-
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
74-
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
75-
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
74+
echo "Ahmyth_RESULT=$(quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
75+
echo "a4db_RESULT=$(quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
76+
echo "e273e_RESULT=$(quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
7677
- name: Check Ahmyt Result
7778
shell: bash
7879
# This sample should have 16 behaviors with 100% confidence

0 commit comments

Comments
 (0)