Skip to content

Commit b26032b

Browse files
authored
Update microbiorust-py_benchmarks.yml
issue with asv creating subdirectory sometimes
1 parent 7c80593 commit b26032b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/microbiorust-py_benchmarks.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,24 @@ jobs:
4444
# 2. PUT HISTORY
4545
- name: Restore results
4646
run: |
47+
#there were difficulties with a subfolder being created sometimes
48+
ASV_ROOT_RESULTS_DIR="microbiorust-py/.asv/results/"
49+
ASV_MACHINE_RESULTS_DIR="microbiorust-py/.asv/results/github-runner/"
50+
4751
if [ -d "old_pages/results" ]; then
48-
echo "Restoring previous benchmark results..."
49-
mkdir -p microbiorust-py/.asv/results
50-
rsync -av old_pages/results/ microbiorust-py/.asv/results/
52+
echo "Restoring previous benchmark results from old_pages/results..."
53+
mkdir -p "${ASV_ROOT_RESULTS_DIR}"
54+
rsync -av old_pages/results/ "${ASV_ROOT_RESULTS_DIR}"
5155
else
5256
echo "No previous results found. Starting fresh."
5357
fi
58+
if [ -d "old_pages/results/github-runner/" ]; then
59+
echo "restoring results from old_pages/results/github-runner"
60+
mkdir -p "$ASV_MACHINE_RESULTS_DIR}"
61+
rsync -av old_pages/results/github-runner/ "${ASV_MACHINE_RESULTS_DIR}"
62+
else
63+
echo "No machine specific results found"
64+
fi
5465

5566
# 3. ADD NEW DATA POINT
5667
- name: Run Benchmarks

0 commit comments

Comments
 (0)