Skip to content

Commit a337503

Browse files
committed
Merge branch 'dvc/debug' into AliasSystem/params/base
2 parents bd57dc0 + e26873d commit a337503

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/ci_tests_dev.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/dvc-diff.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/release-baseline-images.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
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: |

0 commit comments

Comments
 (0)