Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Install DCW and GSHHG data in the "GMT Dev Tests" workflow #3486

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
18 changes: 18 additions & 0 deletions .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,24 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

# Currently, we can't install the two packages in the "Setup Micromamba", mainly
# because the Windows CI fails to compile "gshhg_version.c" due to unknown
# reasons (likely missing DLLs). So we have to install the two packages and
# manaully move the data files to the ~/.gmt/geography/ directory.
- name: Install GMT GSHHG and DCW datasets
run: |
micromamba install dcw-gmt gshhg-gmt
if [[ "${{ runner.os }}" == "Windows" ]]; then
unix_path=$(cygpath ${{ env.MAMBA_ROOT_PREFIX }})
cd ${unix_path}/envs/pygmt/share/
echo ${unix_path}
else
cd ${{ env.MAMBA_ROOT_PREFIX }}/envs/pygmt/share/
fi
mkdir -p ~/.gmt/geography/
mv dcw-gmt ~/.gmt/geography/dcw
mv gshhg-gmt ~/.gmt/geography/gshhg

# Install the package that we want to test
- name: Install the package
run: make install
Expand Down
Loading