File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,11 @@ jobs:
163163
164164 # Pull baseline image data from dvc remote (DAGsHub)
165165 - name : Pull baseline image data from dvc remote
166- run : uv run dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
166+ run : |
167+ uv run dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
168+ uv run dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
169+ env :
170+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
167171
168172 # Install the package that we want to test
169173 - name : Install the package
Original file line number Diff line number Diff line change @@ -161,7 +161,11 @@ jobs:
161161
162162 # Pull baseline image data from dvc remote (DAGsHub)
163163 - name : Pull baseline image data from dvc remote
164- run : dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
164+ run : |
165+ dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
166+ dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
167+ env :
168+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
165169
166170 # Download cached remote files (artifacts) from GitHub
167171 - name : Download remote data from GitHub
Original file line number Diff line number Diff line change @@ -57,10 +57,14 @@ jobs:
5757 env :
5858 repo_token : ${{ github.token }}
5959 PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
60+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
6061 run : |
6162 echo -e "## Summary of changed images\n" > report.md
6263 echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md
6364
65+ # Configure DVC to use the DAGsHub remote via a token
66+ dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
67+
6468 # Pull image data from cloud storage
6569 dvc pull --remote upstream
6670 dvc diff --md main HEAD >> report.md
Original file line number Diff line number Diff line change 3131 uses : iterative/setup-dvc@175771be1dc3d119268e00a896b52a4b77decb5e # v1.2.0
3232
3333 - name : Pull baseline image data from dvc remote
34- run : dvc pull && ls -lhR pygmt/tests/baseline/
34+ run : |
35+ dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
36+ dvc pull && ls -lhR pygmt/tests/baseline/
37+ env :
38+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
3539
3640 - name : Create the baseline image asset in zip format
3741 run : |
You can’t perform that action at this time.
0 commit comments