Skip to content

Commit

Permalink
fix nightly setup (deepset-ai#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Sep 16, 2022
1 parent 4c666fe commit 69bbae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install jupyter
- name: Install dependencies
# remove pip install pyzmq when this is resolved https://github.com/zeromq/pyzmq/issues/1764
run: |
apt-get update && apt-get install -y build-essential gcc libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
pip install pyzmq==23.2.1
pip install nbconvert
pip install ipython
pip install nbconvert ipython
pip install "pyworld<=0.2.12" espnet espnet-model-zoo pydub
- name: Convert notebook to Python
run: |
jupyter nbconvert --to python --RegexRemovePreprocessor.patterns '%%bash' ./tutorials/${{ matrix.notebook }}.ipynb
- name: Run the converted notebook
run: |
echo "/opt" >> $GITHUB_PATH
python ./tutorials/${{ matrix.notebook }}.py
2 changes: 0 additions & 2 deletions .github/workflows/run_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
run: |
for changed_file in ${{ steps.files.outputs.all }}; do
if [[ $changed_file == *".ipynb" ]]; then
echo $changed_file
jupyter nbconvert --to python --RegexRemovePreprocessor.patterns '%%bash' ${changed_file}
fi
done
Expand All @@ -55,5 +54,4 @@ jobs:
# Note: the `+` at the end of the `find` invocation will make it fail if any
# of the execs failed, otherwise `find` returns 0 even when the execs fail.
run: |
echo "/opt" >> $GITHUB_PATH
find ./tutorials -name "*.py" -execdir python {} +;

0 comments on commit 69bbae5

Please sign in to comment.