Skip to content

Commit 95ebb35

Browse files
authored
Update paths
1 parent 35285fd commit 95ebb35

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/dea-intertidal-image.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,15 @@ jobs:
9696
--env AWS_ACCESS_KEY_ID \
9797
--env AWS_SECRET_ACCESS_KEY \
9898
--env AWS_SESSION_TOKEN \
99-
--volume ${GITHUB_WORKSPACE}:/code \
99+
--volume ${GITHUB_WORKSPACE}:/app \
100100
--volume ${GITHUB_WORKSPACE}/tide_models:/var/share/tide_models \
101-
--volume ${GITHUB_WORKSPACE}/artifacts:/mnt/artifacts \
102101
dea_intertidal pytest -v --cov=intertidal --cov-report=xml tests
103102
104-
# Copy out validation outputs produced by the integration tests and place them
105-
# in correct output locations so they can be committed back into the repository
106-
cp ./artifacts/validation.jpg ./tests/validation.jpg
107-
cp ./artifacts/validation.csv ./tests/validation.csv
108-
cp ./artifacts/README.md ./tests/README.md
103+
# # Copy out validation outputs produced by the integration tests and place them
104+
# # in correct output locations so they can be committed back into the repository
105+
# cp ./artifacts/validation.jpg ./tests/validation.jpg
106+
# cp ./artifacts/validation.csv ./tests/validation.csv
107+
# cp ./artifacts/README.md ./tests/README.md
109108
110109
# Commit validation results produced by integration tests back into repo
111110
- name: Commit validation results into repository

tests/test_intertidal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def test_dem_accuracy(
5959
val_path="tests/data/lidar_10m_tests.tif",
6060
mod_path="data/processed/ga_s2ls_intertidal_cyear_3/0-0-1/tes/ting/2021--P1Y/ga_s2ls_intertidal_cyear_3_testing_2021--P1Y_final_elevation.tif",
6161
input_csv="tests/validation.csv",
62-
output_csv="artifacts/validation.csv",
63-
output_plot="artifacts/validation.jpg",
64-
output_md="artifacts/README.md",
62+
output_csv="tests/validation.csv",
63+
output_plot="tests/validation.jpg",
64+
output_md="tests/README.md",
6565
):
6666
"""
6767
Compares elevation outputs of the previous CLI step against
@@ -189,7 +189,7 @@ def test_dem_accuracy(
189189
ax2.set_ylabel("Metres (m)")
190190
ax2.set_xlabel(None)
191191

192-
# Write into mounted artifacts directory
192+
# Write output CSV
193193
accuracy_df.to_csv(output_csv)
194194
plt.savefig(output_plot, dpi=100, bbox_inches="tight")
195195

0 commit comments

Comments
 (0)