Skip to content

Commit

Permalink
Formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Feb 9, 2025
1 parent 88f57cf commit 0a3599d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_notebooks_pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
--env AWS_SESSION_TOKEN \
--volume ${GITHUB_WORKSPACE}/dea-notebooks:/home/jovyan/dea-notebooks \
--volume ${GITHUB_WORKSPACE}/tide_models:/var/share/tide_models \
--env GDAL_HTTP_MAX_RETRY=3 \
--env GDAL_HTTP_MAX_RETRY=10 \
--entrypoint /bin/bash \
538673716275.dkr.ecr.ap-southeast-2.amazonaws.com/geoscienceaustralia/sandbox:stable \
/home/jovyan/dea-notebooks/Tests/test_notebooks.sh "${{ steps.changed-notebooks.outputs.all_changed_files }}"
24 changes: 18 additions & 6 deletions .github/workflows/test_notebooks_scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@ jobs:
runs-on: ubuntu-latest

# Test DEA Notebooks sections against both stable and latest Sandbox image
strategy:
matrix:
tests: ["dea_tools", "beginners_guide", "dea_products", "how_to_guides", "real_world_examples"]
image: ["latest", "stable"]
fail-fast: false
strategy:
# Prevent the entire matrix from failing if one combination fails
fail-fast: false

matrix:
image: [
"latest",
"stable"
]
tests: [
"dea_tools",
"beginners_guide",
"dea_products",
"how_to_guides",
"real_world_examples",
"scalable_machine_learning"
]

steps:

Expand All @@ -40,7 +52,7 @@ jobs:
with:
image: ${{ matrix.image }}

- name: Run DEA Notebooks tests
- name: Run tests against each DEA Notebooks section
run: |
sudo chown -R 1000:100 ./dea-notebooks
cd ./dea-notebooks
Expand Down
5 changes: 5 additions & 0 deletions Tests/test_notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,14 @@ elif [ "$1" = "how_to_guides" ]; then
elif [ "$1" = "real_world_examples" ]; then
echo "Testing Real_world_examples..."
pytest --durations=20 --nbval-lax Real_world_examples \
--ignore Real_world_examples/Scalable_machine_learning \
--ignore Real_world_examples/Estimate_climate_driver_influence_on_rainfall.ipynb \
--ignore Real_world_examples/Mapping_inundation_using_stream_gauges.ipynb

elif [ "$1" = "scalable_machine_learning" ]; then
echo "Testing Scalable_machine_learning..."
pytest --durations=20 --nbval-lax Real_world_examples/Scalable_machine_learning

else
# If an unknown parameter is provided, pass in entirely
echo "Testing custom notebooks: $1"
Expand Down

0 comments on commit 0a3599d

Please sign in to comment.