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:
163
163
164
164
# Pull baseline image data from dvc remote (DAGsHub)
165
165
- 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 }}
167
171
168
172
# Install the package that we want to test
169
173
- name : Install the package
Original file line number Diff line number Diff line change @@ -161,7 +161,11 @@ jobs:
161
161
162
162
# Pull baseline image data from dvc remote (DAGsHub)
163
163
- 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 }}
165
169
166
170
# Download cached remote files (artifacts) from GitHub
167
171
- name : Download remote data from GitHub
Original file line number Diff line number Diff line change @@ -57,10 +57,14 @@ jobs:
57
57
env :
58
58
repo_token : ${{ github.token }}
59
59
PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
60
+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
60
61
run : |
61
62
echo -e "## Summary of changed images\n" > report.md
62
63
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md
63
64
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
+
64
68
# Pull image data from cloud storage
65
69
dvc pull --remote upstream
66
70
dvc diff --md main HEAD >> report.md
Original file line number Diff line number Diff line change 31
31
uses : iterative/setup-dvc@175771be1dc3d119268e00a896b52a4b77decb5e # v1.2.0
32
32
33
33
- 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 }}
35
39
36
40
- name : Create the baseline image asset in zip format
37
41
run : |
You can’t perform that action at this time.
0 commit comments