/ concept-collection / benchcompress
concept-collection / benchcompress
fix workflow
Jeremy Magland <jmagland@flatironinstitute.org> committed commit dfa22496ddd5 parent 7f1e3ba Browse files
1 changed file+7−12
.github/workflows/benchmark.ymlmodified+7−12View file
@@ -32,6 +32,13 @@ jobs:
3232 run: |
3333 python scripts/run_benchmarks.py
3434
35+ - name: Upload benchmark results as artifacts
36+ uses: actions/upload-artifact@v4
37+ with:
38+ name: benchmark-results
39+ path: |
40+ zia_benchmark/benchmark_results/results.json
41+
3542 - name: Configure Git
3643 if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
3744 run: |
@@ -42,18 +49,6 @@ jobs:
4249 if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
4350 run: |
4451 git checkout --orphan benchmark-results
45- git rm -rf .
46- mkdir -p benchmark_results
47-
48- - name: Move benchmark files
49- if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
50- run: |
51- if [ -f benchmark_results/results.json ]; then
52- mv benchmark_results/results.json benchmark_results/
53- else
54- echo "No benchmark results found"
55- exit 1
56- fi
5752
5853 - name: Commit benchmark results
5954 if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'