Skip to content

Commit 8a04e37

Browse files
committed
Track old workflows, test on main and dev
1 parent 7dbb9b1 commit 8a04e37

File tree

5 files changed

+151
-4
lines changed

5 files changed

+151
-4
lines changed

.github/workflows/micromamba.yml.old

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: micromamba
2+
# concurrency:
3+
# group: ${{ github.head_ref || github.run_id }}
4+
# cancel-in-progress: true
5+
6+
on:
7+
# pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "30 1 * * *" # at 1.30am
11+
## these permissions are only for deployment to gh pages
12+
# permissions:
13+
# id-token: write
14+
# pages: write
15+
16+
jobs:
17+
run-benchmark-micromamba:
18+
name: run_clustbench_micromamba
19+
## runs-on: ubuntu-latest
20+
runs-on: self-hosted
21+
strategy:
22+
matrix:
23+
ob_branch: [dev, reduce_install_scope, main]
24+
micromamba-version: ['2.1.1-0', '1.5.12-0']
25+
fail-fast: false
26+
concurrency:
27+
group: micromamba-${{ matrix.micromamba-version }}-${{ matrix.ob_branch }}
28+
cancel-in-progress: false # true
29+
steps:
30+
- name: Check out repository
31+
uses: actions/checkout@v4
32+
33+
- name: Install (with) micromamba
34+
uses: mamba-org/setup-micromamba@v2
35+
with:
36+
cache-environment: false # true
37+
micromamba-version: ${{ matrix.micromamba-version }}
38+
download-micromamba: true
39+
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba-${{ matrix.micromamba-version }}/micromamba
40+
environment-name: test-env-${{matrix.ob_branch }}-${{ matrix.micromamba-version }}
41+
create-args: >-
42+
python=3.12
43+
pip
44+
conda
45+
post-cleanup: environment # all
46+
- name: Overwrite omnibenchmark CLI to branch
47+
shell: bash -l {0}
48+
run: |
49+
micromamba --version
50+
pip install git+https://github.com/omnibenchmark/omnibenchmark.git@${{ matrix.ob_branch }}
51+
52+
# - name: Enable a benchmarking `out` cache
53+
# id: cache-benchmark
54+
# uses: actions/cache@v3
55+
# with:
56+
# path: out/
57+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
58+
59+
- name: Run benchmark
60+
shell: bash -l {0}
61+
run: |
62+
env
63+
output=$( echo "y" | ob run benchmark -b Clustering_conda.yml --local --cores 10 2>&1 )
64+
status=$?
65+
if echo "$output" | grep -i 'Benchmark run has finished successfully'; then
66+
status=0
67+
fi
68+
echo -e $output
69+
sh -c "exit $status"
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: clustbench_miniforge
2+
# concurrency:
3+
# group: ${{ github.head_ref || github.run_id }}
4+
# cancel-in-progress: true
5+
6+
on:
7+
# pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "30 1 * * *" # at 1.30am
11+
12+
## these permissions are only for deployment to gh pages
13+
# permissions:
14+
# id-token: write
15+
# pages: write
16+
17+
jobs:
18+
run-benchmark-miniforge:
19+
name: run_clustbench_miniforge
20+
## runs-on: ubuntu-latest
21+
runs-on: self-hosted
22+
strategy:
23+
matrix:
24+
ob_branch: [dev, reduce_install_scope, main]
25+
fail-fast: false
26+
concurrency:
27+
group: mambaforge-${{ matrix.ob_branch }}
28+
cancel-in-progress: false # true
29+
steps:
30+
- name: Check out repository
31+
uses: actions/checkout@v4
32+
33+
- name: Install Mambaforge
34+
uses: conda-incubator/setup-miniconda@v3
35+
with:
36+
miniforge-variant: Miniforge3
37+
use-mamba: true
38+
activate-environment: test-env-${{matrix.ob_branch }}
39+
python-version: "3.12"
40+
auto-update-conda: true
41+
channels: conda-forge
42+
43+
- name: Cache environment
44+
id: cache-env
45+
uses: actions/cache@v3
46+
with:
47+
path: |
48+
~/.conda/pkgs
49+
~/.conda/envs/omnibenchmark-env
50+
~/.cache/pip
51+
key: ${{ runner.os }}-conda-pip-${{ hashFiles('requirements.txt') }}
52+
restore-keys: |
53+
${{ runner.os }}-conda-pip-
54+
55+
- name: Install omnibenchmark CLI
56+
shell: bash -l {0}
57+
run: |
58+
mamba install -y pip
59+
pip install git+https://github.com/omnibenchmark/omnibenchmark.git@${{ matrix.ob_branch }}
60+
61+
# - name: Enable a benchmarking `out` cache
62+
# id: cache-benchmark
63+
# uses: actions/cache@v3
64+
# with:
65+
# path: out/
66+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
67+
68+
- name: Run benchmark
69+
shell: bash -l {0}
70+
run: |
71+
env
72+
output=$( echo "y" | ob run benchmark -b Clustering_conda.yml --local --cores 10 2>&1 )
73+
status=$?
74+
if echo "$output" | grep -i 'Benchmark run has finished successfully'; then
75+
status=0
76+
fi
77+
echo -e $output
78+
sh -c "exit $status"
File renamed without changes.

.github/workflows/run_conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: run_on_conda
22
on:
3-
# pull_request:
3+
pull_request:
44
workflow_dispatch:
55
schedule:
66
- cron: "30 1 * * *" # at 1.30am
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: self-hosted
1313
strategy:
1414
matrix:
15-
ob_branch: [main]
15+
ob_branch: [main, dev]
1616
fail-fast: false
1717
steps:
1818
- name: Checkout

.github/workflows/run_oras.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: run_on_oras
22
on:
3-
# pull_request:
3+
pull_request:
44
workflow_dispatch:
55
schedule:
66
- cron: "30 1 * * *" # at 1.30am
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
ob_branch: [main]
14+
ob_branch: [main, dev]
1515
fail-fast: false
1616
steps:
1717
- name: Checkout

0 commit comments

Comments
 (0)