Skip to content

Commit 7285bc8

Browse files
authored
CI: Fail the DVC step if dvc fails to pulling baseline images (#2913)
1 parent ff1af6b commit 7285bc8

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ jobs:
141141
142142
# Pull baseline image data from dvc remote (DAGsHub)
143143
- name: Pull baseline image data from dvc remote
144-
run: |
145-
dvc pull --verbose
146-
ls -lhR pygmt/tests/baseline/
144+
run: dvc pull --verbose && ls -lhR pygmt/tests/baseline/
147145

148146
# Install the package that we want to test
149147
- name: Install the package

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ jobs:
163163

164164
# Pull baseline image data from dvc remote (DAGsHub)
165165
- name: Pull baseline image data from dvc remote
166-
run: |
167-
dvc pull
168-
ls -lhR pygmt/tests/baseline/
166+
run: dvc pull && ls -lhR pygmt/tests/baseline/
169167

170168
# Download cached remote files (artifacts) from GitHub
171169
- name: Download remote data from GitHub

.github/workflows/ci_tests_legacy.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ jobs:
103103
104104
# Pull baseline image data from dvc remote (DAGsHub)
105105
- name: Pull baseline image data from dvc remote
106-
run: |
107-
dvc pull pygmt/tests/baseline/test_logo.png --verbose
108-
ls -lhR pygmt/tests/baseline/
106+
run: dvc pull pygmt/tests/baseline/test_logo.png && ls -lhR pygmt/tests/baseline/
109107

110108
# Install the package that we want to test
111109
- name: Install the package

.github/workflows/release-baseline-images.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525
uses: iterative/setup-dvc@v1.1.2
2626

2727
- name: Pull baseline image data from dvc remote
28-
run: |
29-
dvc pull
30-
ls -lhR pygmt/tests/baseline/
28+
run: dvc pull && ls -lhR pygmt/tests/baseline/
3129

3230
- name: Create the baseline image asset in zip format
3331
run: |

0 commit comments

Comments
 (0)