Skip to content

Commit 13696e1

Browse files
authored
Update workflows (#281)
* update workflows to build docs in a separate task * ignore failing cf builds * fix filename * install lib deps
1 parent 36fb568 commit 13696e1

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/pages/cf-pages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pip install conda
44
conda install pyaudio
55
python3.7 -m pip install -U -r requirements.txt
66
sphinx-build -b html . ../dist
7+
echo ""

.github/workflows/build.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types: [opened, edited]
77

88
jobs:
9-
build:
9+
lib:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
@@ -26,16 +26,34 @@ jobs:
2626

2727
- name: Install Deps
2828
run: |
29-
sudo apt update
30-
sudo apt install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
3129
python -m ensurepip
3230
pip install wheel setuptools
3331
pip install -r requirements.txt
34-
pip install -r docs/requirements.txt
3532
3633
- name: Build
3734
run: python setup.py sdist bdist_wheel
3835

36+
docs:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 0
43+
44+
- name: Install CPython
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: 3.x
48+
49+
- name: Install Deps
50+
run: |
51+
sudo apt update
52+
sudo apt install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
53+
python -m ensurepip
54+
pip install -r docs/requirements.txt
55+
pip install -r requirements.txt
56+
3957
- name: Build Docs
4058
run: |
4159
cd docs

0 commit comments

Comments
 (0)