Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 16768dd

Browse files
committedMay 7, 2025·
Update early failure and add micromamba action
1 parent f27abde commit 16768dd

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed
 

‎.github/workflows/micromamba.yml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
name: micromamba
2+
concurrency:
3+
group: ${{ github.head_ref || github.run_id }}
4+
cancel-in-progress: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
workflow_dispatch:
12+
13+
## these permissions are only for deployment to gh pages
14+
# permissions:
15+
# id-token: write
16+
# pages: write
17+
18+
jobs:
19+
run-benchmark:
20+
name: run_clustbench
21+
runs-on: ubuntu-latest
22+
## runs-on: self-hosted
23+
strategy:
24+
matrix:
25+
ob_branch: [dev, reduce_install_scope, main]
26+
fail-fast: false
27+
steps:
28+
- name: Check out repository
29+
uses: actions/checkout@v4
30+
31+
32+
- name: Install (with) micromamba
33+
uses: mamba-org/setup-micromamba@v2
34+
with:
35+
environment-file: test-environment.yml
36+
cache-environment: true
37+
post-cleanup: 'all'
38+
39+
- name: Overwrite omnibenchmark CLI to branch
40+
shell: bash -l {0}
41+
run: |
42+
pip install git+https://github.com/omnibenchmark/omnibenchmark.git@${{ matrix.ob_branch }}
43+
44+
# - name: Enable a benchmarking `out` cache
45+
# id: cache-benchmark
46+
# uses: actions/cache@v3
47+
# with:
48+
# path: out/
49+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
50+
51+
- name: Run benchmark
52+
shell: bash -l {0}
53+
continue-on-error: false
54+
run: |
55+
date
56+
echo "y" | ob run benchmark -b Clustering.yaml --local --cores 2 --continue-on-error
57+
date
58+
if: matrix.ob_branch == 'dev' || matrix.ob_branch == 'reduce_install_scope'
59+
60+
- name: Run benchmark
61+
shell: bash -l {0}
62+
continue-on-error: false
63+
run: |
64+
date
65+
echo "y" | ob run benchmark -b Clustering.yaml --local --threads 2
66+
date
67+
if: matrix.ob_branch == 'main'
68+
69+
# upload-artifact:
70+
# name: Benchmark Artifact
71+
# runs-on: ubuntu-latest
72+
# ## runs-on: self-hosted
73+
# needs: run-benchmark
74+
# if: always()
75+
# steps:
76+
# - name: Check out repository
77+
# uses: actions/checkout@v4
78+
79+
# - name: Load cached output
80+
# uses: actions/cache@v3
81+
# with:
82+
# path: out/
83+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
84+
85+
# - name: Prepare output
86+
# run: |
87+
# zip -r benchmark_output.zip out/
88+
# mkdir -p gh-pages
89+
# cp out/plotting/plotting_report.html gh-pages/index.html
90+
91+
# - name: Upload zipped output
92+
# uses: actions/upload-artifact@v4
93+
# with:
94+
# name: benchmark-output
95+
# path: benchmark_output.zip
96+
# retention-days: 7
97+
98+
# - name: Upload Pages Artifact
99+
# uses: actions/upload-pages-artifact@v3
100+
# with:
101+
# path: gh-pages
102+
103+
# - name: Deploy to GitHub Pages
104+
# uses: actions/deploy-pages@v4
105+
106+
# - name: Create Job Summary
107+
# if: always()
108+
# run: |
109+
# echo "### Reports" >> $GITHUB_STEP_SUMMARY
110+
# echo "- [Plotting Report](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }})" >> $GITHUB_STEP_SUMMARY
111+
# echo "### All Outputs" >> $GITHUB_STEP_SUMMARY
112+
# echo "- [Complete Benchmark Output](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)" >> $GITHUB_STEP_SUMMARY
113+

‎.github/workflows/miniconda_miniforge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
ob_branch: [dev, reduce_install_scope, main]
26+
fail-fast: false
2627
steps:
2728
- name: Check out repository
2829
uses: actions/checkout@v4

0 commit comments

Comments
 (0)