Add a Docker container for dot #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-dot | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build-and-test: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
cache-dependency-path: 'requirements*.txt' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y ffmpeg libsndfile1-dev | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Unit Tests | |
run: | | |
pip install -c requirements-dev.txt --force-reinstall pytest pytest-cov | |
pytest --cov=src --cov-report=term-missing:skip-covered --cov-fail-under=10 |