Skip to content

Commit

Permalink
[CI] Replace outdated action (deepset-ai#57)
Browse files Browse the repository at this point in the history
* replace outdated action

* action requires git on board

* add fetch-depth

* bump

* add git before checking out

* revert test change

* revert
  • Loading branch information
masci committed Oct 31, 2022
1 parent 70a8eb5 commit 8228910
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/run_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,20 @@ jobs:
ELASTICSEARCH_HOST: "elasticsearch"

steps:
- name: Checkout
uses: actions/checkout@v3

- 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
apt-get update && apt-get install -y git build-essential gcc libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
pip install nbconvert ipython
pip install "pyworld<=0.2.12" espnet espnet-model-zoo pydub
- name: Files changed
uses: jitterbit/get-changed-files@v1
id: files
- name: Checkout
uses: actions/checkout@v3
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 2

- name: Get changed files
id: files
uses: tj-actions/changed-files@v34

- name: Convert notebooks to Python
shell: bash
Expand All @@ -51,7 +48,7 @@ jobs:
"tutorials/14_Query_Classifier.ipynb"
"tutorials/18_GPL.ipynb"
)
for changed_file in ${{ steps.files.outputs.all }}; do
for changed_file in ${{ steps.files.outputs.all_changed_files }}; do
if [[ $changed_file == *".ipynb" ]]; then
if [[ ! " ${skiplist[*]} " =~ " ${changed_file} " ]]; then
jupyter nbconvert --to python --RegexRemovePreprocessor.patterns '%%bash' ${changed_file}
Expand Down

0 comments on commit 8228910

Please sign in to comment.