Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ jobs:

# Pull baseline image data from dvc remote (DAGsHub)
- name: Pull baseline image data from dvc remote
run: uv run dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
run: |
uv run dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
uv run dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

# Install the package that we want to test
- name: Install the package
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ jobs:

# Pull baseline image data from dvc remote (DAGsHub)
- name: Pull baseline image data from dvc remote
run: dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
run: |
dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

# Download cached remote files (artifacts) from GitHub
- name: Download remote data from GitHub
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dvc-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ jobs:
env:
repo_token: ${{ github.token }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}
run: |
echo -e "## Summary of changed images\n" > report.md
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md

# Configure DVC to use the DAGsHub remote via a token
dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local

# Pull image data from cloud storage
dvc pull --remote upstream
dvc diff --md main HEAD >> report.md
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-baseline-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:
uses: iterative/setup-dvc@175771be1dc3d119268e00a896b52a4b77decb5e # v1.2.0

- name: Pull baseline image data from dvc remote
run: dvc pull && ls -lhR pygmt/tests/baseline/
run: |
dvc remote modify upstream url https://${DAGSHUB_TOKEN}@dagshub.com/GenericMappingTools/pygmt.dvc --local
dvc pull && ls -lhR pygmt/tests/baseline/
env:
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}

- name: Create the baseline image asset in zip format
run: |
Expand Down
Loading