Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/dea-intertidal-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
- 'tests/**'
- '.github/workflows/dea-intertidal-image.yml'
- 'Dockerfile'
- 'requirements.in'
- 'setup.py'
- 'pyproject.toml'
- 'uv.lock'
- 'codecov.yaml'

pull_request:
Expand All @@ -27,8 +27,8 @@ on:
- 'tests/**'
- '.github/workflows/dea-intertidal-image.yml'
- 'Dockerfile'
- 'requirements.in'
- 'setup.py'
- 'pyproject.toml'
- 'uv.lock'
- 'codecov.yaml'

release:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
echo "PGPORT=5432" >> $GITHUB_ENV
echo "PGHOST=localhost" >> $GITHUB_ENV

- name: Build DEA Intertidal docker image
- name: Build DEA Intertidal docker image
timeout-minutes: 30
shell: bash
run: |
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
with:
message: |
![](https://github.com/GeoscienceAustralia/dea-intertidal/blob/${{ github.head_ref }}/tests/validation.jpg?raw=true")

For full integration test results, refer to the [Tests directory README](https://github.com/GeoscienceAustralia/dea-intertidal/tree/${{ github.head_ref }}/tests).

- name: Upload coverage reports to Codecov
Expand Down
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.12.9"
hooks:
- id: ruff-check # Run linter using pyproject.toml config
- id: ruff-format # Run formatter using pyproject.toml config

- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.8.11"
hooks:
- id: uv-lock
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ requires-python = ">=3.10,<4.0"
dependencies = [
"Bottleneck>=1.4.2",
"click>=8.1.7",
"dea-tools==0.4.6.dev3", # temporarily pin specific version of DEA Tools for Numpy 2.0 compatability
"dea-tools>=0.4.6",
"eo-tides>=0.8.3",
"folium>=0.16.0",
"geopandas>=0.14.4",
Expand Down Expand Up @@ -83,8 +83,9 @@ dev = [
"awscli>=1.38.1",
"botocore>=1.37.1",
"mdutils>=1.6.0",
"pre-commit>=0.2.0",
"pytest>=6.0.0",
"pytest-dependency>=0.6.0",
"pytest-dependency>=0.6.0",
"pytest-cov>=6.0.0",
"deptry>=0.20.0",
"ruff>=0.1.0",
Expand Down Expand Up @@ -158,4 +159,4 @@ source = ["intertidal"]
DEP002 = [
"pyogrio", # used to speed up data loading
"odc-ui", # ignore odc.ui not being recognised as `odc-ui`
]
]
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Integration tests

This directory contains tests that are run to verify that DEA Intertidal code runs correctly. The ``test_intertidal.py`` file runs a small-scale full workflow analysis over an intertidal flat in the Gulf of Carpentaria using the DEA Intertidal [Command Line Interface (CLI) tools](../notebooks/Intertidal_CLI.ipynb), and compares these results against a LiDAR validation DEM to produce some simple accuracy metrics.

The latest integration test completed at **2025-09-24 17:19**. Compared to the previous run, it had an:
The latest integration test completed at **2025-09-25 15:15**. Compared to the previous run, it had an:
- RMSE accuracy of **0.14 m ( :heavy_minus_sign: no change)**
- MAE accuracy of **0.12 m ( :heavy_minus_sign: no change)**
- Bias of **0.12 m ( :heavy_minus_sign: no change)**
Expand Down
1 change: 1 addition & 0 deletions tests/validation.csv
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ time,Correlation,RMSE,MAE,R-squared,Bias,Regression slope
2025-09-24 06:00:07.113646+00:00,0.975,0.145,0.122,0.95,0.116,1.121
2025-09-24 06:17:15.044540+00:00,0.975,0.145,0.122,0.95,0.116,1.121
2025-09-24 07:19:12.704574+00:00,0.975,0.145,0.122,0.95,0.116,1.121
2025-09-25 05:15:37.048163+00:00,0.975,0.145,0.122,0.95,0.116,1.121
Binary file modified tests/validation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading