Skip to content

Commit

Permalink
CI: Avoid pulling GMT baseline images in the "GMT Dev Tests" workflow (
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Dec 29, 2023
1 parent bb82345 commit 5e4388b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt.sh | bash
env:
GMT_GIT_REF: ${{ matrix.gmt_git_ref }}
GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
if: runner.os != 'Windows'

- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Windows)
Expand All @@ -139,13 +139,15 @@ jobs:
-DGMT_USE_THREADS=TRUE
cmake --build .
cmake --build . --target install
cd ..
rm -rf gmt/
env:
GMT_GIT_REF: ${{ matrix.gmt_git_ref }}
GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir
GMT_INSTALL_DIR: ${{ runner.temp }}/gmt-install-dir
if: runner.os == 'Windows'

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

# Install dependencies from PyPI
- name: Install dependencies
Expand All @@ -163,7 +165,7 @@ jobs:

# Pull baseline image data from dvc remote (DAGsHub)
- name: Pull baseline image data from dvc remote
run: dvc pull && ls -lhR pygmt/tests/baseline/
run: dvc pull --verbose && ls -lhR pygmt/tests/baseline/

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

# Upload diff images on test failure
- name: Upload diff images if any test fails
Expand Down

0 comments on commit 5e4388b

Please sign in to comment.