Skip to content

Commit 1549ed1

Browse files
authored
Pull baseline images from the gmt-6.4 branch only for scheduled jobs (#1882)
1 parent d3777fc commit 1549ed1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,23 @@ jobs:
106106
107107
# Pull baseline image data from dvc remote (DAGsHub)
108108
- name: Pull baseline image data from dvc remote
109+
if: github.event_name == 'schedule'
109110
run: |
110111
ORIGINAL_BRANCH=$(git branch --show-current)
111112
# Pull down GMT 6.4 baseline images from the gmt-6.4 branch
113+
# https://github.com/GenericMappingTools/pygmt/pull/1883
112114
git checkout gmt-6.4
113115
dvc pull
114116
ls -lhR pygmt/tests/baseline/
115117
git checkout ${ORIGINAL_BRANCH}
116118
119+
# Pull baseline image data from dvc remote (DAGsHub)
120+
- name: Pull baseline image data from dvc remote
121+
if: github.event_name != 'schedule'
122+
run: |
123+
dvc pull
124+
ls -lhR pygmt/tests/baseline/
125+
117126
# Build and install latest GMT from GitHub
118127
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS)
119128
run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt.sh | bash

0 commit comments

Comments
 (0)