From e2c7b2e45cc2c674dc4b9d291df4bdf32aa16872 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 29 May 2026 10:38:50 +0800 Subject: [PATCH 1/2] CI: Fix the dvc pull on Windows --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0478613913..3e1c16d7c88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -127,13 +127,14 @@ jobs: continue-on-error: true run: | dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local - dvc pull --remote origin --no-run-cache + dvc pull --remote origin --no-run-cache --force env: DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }} - name: Download DVC cache from GitHub Artifacts and restore baseline image data if: steps.dvc-pull.outcome == 'failure' run: | + rm -rf .dvc/cache gh run download -n dvc-cache -D .dvc/cache/ dvc checkout --force env: From 483d5e59c126bf24c3496a78faf97970929063f6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 29 May 2026 10:55:08 +0800 Subject: [PATCH 2/2] Apply the same patch in the Docs workflow --- .github/workflows/docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ce9fdccda6b..76563737844 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -86,13 +86,14 @@ jobs: continue-on-error: true run: | dvc remote modify origin url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/gmt.dvc --local - dvc pull --remote origin --no-run-cache + dvc pull --remote origin --no-run-cache --force env: DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }} - name: Download DVC cache from GitHub Artifacts and restore baseline image data if: steps.dvc-pull.outcome == 'failure' run: | + rm -rf .dvc/cache/ gh run download -n dvc-cache -D .dvc/cache/ dvc checkout --force env: