-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Download cached remote files in benchmarks.yml (#2923)
Make the benchmark GitHub Actions workflow more reliable by pre-downloading some cached files.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,24 @@ jobs: | |
geopandas pytest pytest-benchmark pytest-mpl | ||
python -m pip install -U pytest-codspeed setuptools | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
# Install the package that we want to test | ||
- name: Install the package | ||
run: make install | ||
|