Create mobsf_test.yml

This commit is contained in:
Ajin Abraham
2020-12-27 15:38:08 -05:00
committed by GitHub
parent 7b1d2eec0d
commit 95c9873cba
+37
View File
@@ -0,0 +1,37 @@
name: MobSF tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Host Dependencies
run: |
sudo apt install -y openjdk-8-jdk python3-dev python3-pip build-essential libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev wkhtmltopdf
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel tox
pip install --no-index --find-links=scripts/wheels yara-python || (pip wheel --wheel-dir=yara-python --build-option="build" --build-option="--enable-dex" "git+https://github.com/VirusTotal/[email protected]" && pip install --no-index --find-links=yara-python yara-python)
pip install -r requirements.txt
- name: Migrate and Setup Env
run: |
python manage.py makemigrations
python manage.py makemigrations StaticAnalyzer
python manage.py migrate
git submodule update --init --recursive
- name: Lint
run: |
tox -e lint
- name: Unit Tests
run: |
python manage.py test