Skip to content

Bump CI OS to ubuntu-22.04 #50

Bump CI OS to ubuntu-22.04

Bump CI OS to ubuntu-22.04 #50

Workflow file for this run

---
name: "Test"
on:
pull_request:
push:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: True
jobs:
test:
runs-on: "ubuntu-22.04"
strategy:
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
steps:
- name: Check out repository
uses: "actions/checkout@v2"
- name: Set up Python ${{ matrix.python-version }}
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: Install homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
echo "::add-path::/home/linuxbrew/.linuxbrew/bin"
brew --version
- name: Install siegfried
run: |
brew install richardlehane/digipres/siegfried
- name: Install ClamAV
run: |
sudo apt-get update && sudo apt-get install clamav
sudo systemctl stop clamav-freshclam.service
sudo freshclam
- name: Install tree
run: |
sudo apt-get install tree
- name: Install disktype
run: |
brew install disktype
- name: Install md5deep
run: |
brew install md5deep
- name: Install sleuthkit
run: |
brew install sleuthkit
- name: Install bulk_extractor
run: |
brew install bulk_extractor
- name: Get pip cache dir
id: "pip-cache"
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip packages
uses: "actions/cache@v2"
with:
path: "${{ steps.pip-cache.outputs.dir }}"
key: "${{ runner.os }}-pip-${{ hashFiles('**/test.txt') }}"
restore-keys: |
${{ runner.os }}-pip-
- name: Install pip requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements/test.txt
- name: Run tests
run: |
python test.py