Skip to content

[actions] fixed call to audiomodules #157

[actions] fixed call to audiomodules

[actions] fixed call to audiomodules #157

Workflow file for this run

name: tests
on: [push]
jobs:
build-doc:
if: github.repository == 'bendalab/audioio'
runs-on: ubuntu-latest
steps:
- name: Checkout audioio
uses: actions/checkout@v4
- name: Setup python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libblas-dev liblapack-dev gfortran libsndfile1 libsndfile1-dev libffi-dev ffmpeg libportaudio2 portaudio19-dev osspd libasound2-dev python3-dev
python -m pip install --upgrade pip
pip install wavefile
pip install git+https://github.com/melizalab/py-ewave
pip install pydub
pip install pyaudio
pip install sounddevice
pip install soundcard
pip install pytest pytest-cov
pip install pdoc3
pip install mkdocs
pip install genbadge[coverage]
pip install -r requirements.txt
- name: Run tests
run: pytest -v --cov-report xml --cov-report html:cover --cov-report term --cov audioio tests/
shell: bash
- name: Build documentation
run: ./build-docs.sh
shell: bash
- name: Commit generated files
run: |
cd site
git config --global init.defaultBranch main
git init
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git add -f coverage.svg
git add -f cover/*.*
git commit -m 'deploy'
- name: Push to github pages
uses: ad-m/github-push-action@master
# https://github.com/ad-m/github-push-action
with:
github_token: ${{ secrets.AUDIOIO_DOCU }}
branch: gh-pages
force: true
directory: site
# Personal Access Token (PAT):
# - Generate it on your user's
# Settings->Developer settings->personal access tokens
# Set 90 days or 1 year, click repo.
# - Make it known on the repositories (it is the bendalab repository)
# Settings->Secrets and variables->Actions->Repository secrets
# under the name AUDIOIO_DOCU.
# NOTE:
# the github.io/project page is the gh-pages branch of that project,
# NOT the gh-pages branch of the bendalab.github.io repository!!!