Skip to content

Commit 6ed1aa2

Browse files
authored
CI: Download cached remote files in benchmarks.yml (#2923)
Make the benchmark GitHub Actions workflow more reliable by pre-downloading some cached files.
1 parent fbc4e97 commit 6ed1aa2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/benchmarks.yml

+18
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ jobs:
6464
geopandas pytest pytest-benchmark pytest-mpl
6565
python -m pip install -U pytest-codspeed setuptools
6666
67+
# Download cached remote files (artifacts) from GitHub
68+
- name: Download remote data from GitHub
69+
uses: dawidd6/[email protected]
70+
with:
71+
workflow: cache_data.yaml
72+
workflow_conclusion: success
73+
name: gmt-cache
74+
path: .gmt
75+
76+
# Move downloaded files to ~/.gmt directory and list them
77+
- name: Move and list downloaded remote files
78+
run: |
79+
mkdir -p ~/.gmt
80+
mv .gmt/* ~/.gmt
81+
# Change modification times of the two files, so GMT won't refresh it
82+
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt
83+
ls -lhR ~/.gmt
84+
6785
# Install the package that we want to test
6886
- name: Install the package
6987
run: make install

0 commit comments

Comments
 (0)