Skip to content

Commit

Permalink
CI: Download cached remote files in benchmarks.yml (#2923)
Browse files Browse the repository at this point in the history
Make the benchmark GitHub Actions workflow more reliable
by pre-downloading some cached files.
  • Loading branch information
weiji14 authored Dec 27, 2023
1 parent fbc4e97 commit 6ed1aa2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ed1aa2

Please sign in to comment.