Skip to content

Commit dfc1a88

Browse files
authored
Benchmark fix (#353)
* simplify conditional * don't fetch specific branch * attempt fix * another attempt
1 parent 62751ce commit dfc1a88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
- uses: actions/checkout@v4
8282
with:
8383
fetch-depth: 0
84+
ref: ${{ github.ref }}
8485

8586
- uses: actions/setup-python@v5
8687
with:
@@ -124,7 +125,9 @@ jobs:
124125
PIP_CONSTRAINT: ${{ github.workspace }}/benchmarks/benchmark.txt
125126

126127
- name: Fetch main branch
127-
run: git fetch origin main:main
128+
run: |
129+
git fetch origin main
130+
git branch main FETCH_HEAD
128131
129132
- name: Run benchmarks latest release
130133
# here we check if the benchmark on the latest release is not broken

0 commit comments

Comments
 (0)