Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jun 8, 2023
1 parent 1f183f9 commit 86eeb24
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,20 @@ jobs:
jupyter kernelspec list
which python
conda list | sort
printenv | 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 @@ -46,17 +57,10 @@ jobs:
with:
version: 1.1.251

- name: "List updated notebooks"
id: changed-files
uses: tj-actions/changed-files@v36
with:
# since_last_remote_commit: true
files: |
**/*.ipynb
files_ignore: |
**/*endered*.ipynb


- name: "Execute notebooks with Quarto"
if: steps.changed-files.outputs.any_changed == 'true'
env:
EARTHDATA_USERNAME: ${{ secrets.EARTHDATA_USERNAME }}
EARTHDATA_PASSWORD: ${{ secrets.EARTHDATA_PASSWORD }}
Expand Down
5 changes: 4 additions & 1 deletion notebooks/SnowEx_ASO_MODIS_Snow/Snow-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"4. Read CSV and GeoTIFF formatted data using geopandas and rasterio libraries.\n",
"5. Subset data based on buffered area.\n",
"5. Extract and visualize raster values at point locations.\n",
"6. Save output as shapefile for further GIS analysis.\n"
"6. Save output as shapefile for further GIS analysis.\n",
"\n",
"---\n",
"\n"
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion notebooks/SnowEx_ASO_MODIS_Snow/Snow-tutorial_rendered.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"4. Read CSV and GeoTIFF formatted data using geopandas and rasterio libraries.\n",
"5. Subset data based on buffered area.\n",
"5. Extract and visualize raster values at point locations.\n",
"6. Save output as shapefile for further GIS analysis.\n"
"6. Save output as shapefile for further GIS analysis.\n",
"\n",
"\n",
"---\n",
"\n"
]
},
{
Expand Down

0 comments on commit 86eeb24

Please sign in to comment.