Skip to content

Commit

Permalink
Add skip list to action
Browse files Browse the repository at this point in the history
  • Loading branch information
hevansDev committed Oct 15, 2024
1 parent 1cefeb4 commit 0175ee2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4.1.7

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
Expand All @@ -18,7 +18,7 @@ jobs:
with:
files: |
**.ipynb
- name: Start docker and test container
if: steps.changed-files.outputs.any_changed == 'true'
env:
Expand All @@ -33,18 +33,22 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
skiplList=("notebooks/03-query/11-joins.ipynb" #Hangs forever on users data generation, even when run manually, just broken?
"notebooks/99-contributing/notebook-template.ipynb") #Contains invalid sql
for file in ${ALL_CHANGED_FILES}; do
echo "$file"
docker exec jupyter papermill ../$file /dev/null --execution-timeout=1200 --log-level ERROR
if [[ ! " ${skiplList[*]} " =~ [[:space:]]${file}[[:space:]] ]]; then
docker exec jupyter papermill ../$file output.ipynb --log-level ERROR
else
echo "Skipped"
fi
done
- name: Stop docker and test container
if: steps.changed-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
docker compose --profile all-services down -v
shell: bash



0 comments on commit 0175ee2

Please sign in to comment.