Add notebook for tracking coastal sediment using optical flow vectors #195
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test entire repo against DEA Sandbox image | |
| # This workflow tests the entire repository against DEA Sandbox "stable" image | |
| # when Python code changes (i.e. DEA Tools changes) are proposed to develop branch | |
| on: | |
| # Run whenever a pull request to the develop branch modifies the DEA Tools Python | |
| # package. This catches potential issues early before changes are merged | |
| pull_request: | |
| branches: | |
| - develop | |
| paths: | |
| - '**/*.py' | |
| - 'pyproject.toml' | |
| # Allow manual triggering through the GitHub UI | |
| # Useful for on-demand testing or troubleshooting | |
| workflow_dispatch: | |
| # Ensure only one test workflow runs per branch/PR at a time | |
| concurrency: | |
| group: ${{ github.ref }} # Group by branch or PR ref | |
| cancel-in-progress: true # Cancel any in-progress runs if a new one starts | |
| permissions: | |
| id-token: write # Required for OIDC authentication to AWS | |
| contents: read | |
| jobs: | |
| test-notebooks: | |
| runs-on: ubuntu-latest | |
| # Test DEA Notebooks sections against stable Sandbox image | |
| strategy: | |
| matrix: | |
| image: | |
| - "stable" | |
| tests: | |
| - "dea_tools" | |
| - "beginners_guide" | |
| - "dea_products" | |
| - "how_to_guides" | |
| - "real_world_examples" | |
| - "scalable_machine_learning" | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: dea-notebooks | |
| - name: Set up database access and tests | |
| uses: ./dea-notebooks/.github/actions/test_setup | |
| with: | |
| image: ${{ matrix.image }} | |
| - name: Run tests against each DEA Notebooks section | |
| run: | | |
| sudo chown -R 1000:100 ./dea-notebooks | |
| cd ./dea-notebooks | |
| docker run --rm \ | |
| --net=host \ | |
| --env DATACUBE_DB_URL \ | |
| --env AWS_SESSION_TOKEN \ | |
| --env AWS_REGION \ | |
| --env AWS_ACCESS_KEY_ID \ | |
| --env AWS_SECRET_ACCESS_KEY \ | |
| --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=10 \ | |
| --entrypoint /bin/bash \ | |
| 538673716275.dkr.ecr.ap-southeast-2.amazonaws.com/geoscienceaustralia/sandbox:${{ matrix.image }} \ | |
| /home/jovyan/dea-notebooks/Tests/test_notebooks.sh "${{ matrix.tests }}" |