Skip to content

Sep reqs for darwin & linux systems #21

Sep reqs for darwin & linux systems

Sep reqs for darwin & linux systems #21

Workflow file for this run

name: tests
on:
push:
branches: master
pull_request:
branches: master
jobs:
face-detection:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pkg-deps-${{ matrix.python }}-${{ hashFiles('requirements.txt') }}-
restore-keys: |
${{ runner.os }}-pkg-deps-${{ matrix.python }}-${{ hashFiles('requirements.txt') }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: Download model weights
run: |
wget https://github.com/SamSamhuns/face_detection_and_recognition/releases/download/v2.0.0/weights.zip -O face_detection_and_extraction/weights.zip
unzip face_detection_and_extraction/weights.zip -d face_detection_and_extraction/
rm face_detection_and_extraction/weights.zip
- name: Cache model weights
uses: actions/cache@v2
with:
path: face_detection_and_extraction/weights
key: ${{ runner.os }}-model-wts-${{ matrix.python }}-${{ hashFiles('requirements.txt') }}-
restore-keys: |
${{ runner.os }}-model-wts-${{ matrix.python }}-${{ hashFiles('requirements.txt') }}-
- name: Run unittests
run: |
cd face_detection_and_extraction && python -m pytest --cov=modules tests