Skip to content

Commit 5e4388b

Browse files
authored
CI: Avoid pulling GMT baseline images in the "GMT Dev Tests" workflow (#2931)
1 parent bb82345 commit 5e4388b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt.sh | bash
121121
env:
122122
GMT_GIT_REF: ${{ matrix.gmt_git_ref }}
123-
GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir
123+
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
124124
if: runner.os != 'Windows'
125125

126126
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Windows)
@@ -139,13 +139,15 @@ jobs:
139139
-DGMT_USE_THREADS=TRUE
140140
cmake --build .
141141
cmake --build . --target install
142+
cd ..
143+
rm -rf gmt/
142144
env:
143145
GMT_GIT_REF: ${{ matrix.gmt_git_ref }}
144-
GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir
146+
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
145147
if: runner.os == 'Windows'
146148

147149
- name: Add GMT's bin to PATH
148-
run: echo '${{ github.workspace }}/gmt-install-dir/bin' >> $GITHUB_PATH
150+
run: echo '${{ runner.temp }}/gmt-install-dir/bin' >> $GITHUB_PATH
149151

150152
# Install dependencies from PyPI
151153
- name: Install dependencies
@@ -163,7 +165,7 @@ jobs:
163165

164166
# Pull baseline image data from dvc remote (DAGsHub)
165167
- name: Pull baseline image data from dvc remote
166-
run: dvc pull && ls -lhR pygmt/tests/baseline/
168+
run: dvc pull --verbose && ls -lhR pygmt/tests/baseline/
167169

168170
# Download cached remote files (artifacts) from GitHub
169171
- name: Download remote data from GitHub
@@ -191,7 +193,7 @@ jobs:
191193
- name: Test with pytest
192194
run: make test PYTEST_EXTRA="-r P"
193195
env:
194-
GMT_LIBRARY_PATH: ${{ github.workspace }}/gmt-install-dir/lib
196+
GMT_LIBRARY_PATH: ${{ runner.temp }}/gmt-install-dir/lib
195197

196198
# Upload diff images on test failure
197199
- name: Upload diff images if any test fails

0 commit comments

Comments
 (0)