Skip to content

Add container-explorer to analysis VM startup scripts (#525) #1292

Add container-explorer to analysis VM startup scripts (#525)

Add container-explorer to analysis VM startup scripts (#525) #1292

name: Run pylint and mypy on the codebase
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install poetry
run: |
python -m pip install poetry
- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies through Poetry
run: |
python -m poetry install --with dev
- name: Run pylint on all *.py files
run: |
python -m poetry run pylint tests libcloudforensics tools
- name: Run mypy on all *.py files
run: |
python -m poetry run mypy --ignore-missing-imports --strict --no-warn-unused-ignores -p tests -p libcloudforensics -p tools