Working for CHI #935
This file contains hidden or 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: CI pipeline | |
| on: [push] | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install libsndfile1 -y && sudo apt-get install -y libglib2.0-dev && pip install -r requirements.txt | |
| # - name: Run pytest | |
| # run: pytest | |
| - name: Build docs | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| sphinx-build docs/source _build | |
| - name: Publish docs | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| publish_branch: gh-pages | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: _build/ | |
| force_orphan: true |