Skip to content

Commit

Permalink
revert changed files action
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jun 8, 2023
1 parent f1b6803 commit ae48f97
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Install Conda environment with Micromamba"
uses: mamba-org/provision-with-micromamba@main
with:
Expand All @@ -35,19 +37,7 @@ jobs:
which python
conda list | sort
- name: "List updated notebooks"
id: changed-files
uses: tj-actions/changed-files@v36
with:
# since_last_remote_commit: true
separator: "\n"
files: |
**/*.ipynb
files_ignore: |
**/*endered*.ipynb
- name: "Verify that libraries used in notebooks are present in the environment"
if: steps.changed-files.outputs.any_changed == 'true'
shell: bash -l {0}
run: |
find notebooks -type f -iname \*.ipynb -not -path '*\.ipynb_checkpoints/*' -not -path '*/iceflow/*' | xargs -I % python .github/workflows/scan_notebooks.py -n %
Expand All @@ -57,19 +47,14 @@ jobs:
with:
version: 1.1.251



- name: "Execute notebooks with Quarto"
if: steps.changed-files.outputs.any_changed == 'true'
env:
EARTHDATA_USERNAME: ${{ secrets.EARTHDATA_USERNAME }}
EARTHDATA_PASSWORD: ${{ secrets.EARTHDATA_PASSWORD }}
shell: bash -l {0}
run: |
for notebook in ${{ steps.changed-files.outputs.added_files }}; do
echo "Executing ${notebook} ..."
quarto render $notebook --execute --execute-daemon
done
find notebooks -type f -name "*.ipynb" -not -path '*\.ipynb_checkpoints/*' -not -path '*endered*' | xargs -I F quarto render "F" --execute --execute-daemon
win-osx:
name: Runtime (${{ matrix.os }}, micromamba)
Expand Down

0 comments on commit ae48f97

Please sign in to comment.