Skip to content

update benchmark

update benchmark #10

Workflow file for this run

name: Run Benchmarks
on:
push:
branches: [ "main" ]
paths:
- 'benchmarks/BENCHMARK_VERSION'
workflow_dispatch: # Allow manual trigger
permissions:
actions: write
contents: write
jobs:
benchmark:
runs-on: dx3
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Run benchmark script Mouse.PacBio_1_perwidth
working-directory: benchmarks
run: bash run_Mouse.PacBio_1_perwidth.sh results-docs 180
- name: Run benchmark script SRR020730
working-directory: benchmarks
run: bash run_SRR020730.sh results-docs 180
- name: Commit benchmark results
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add benchmarks/results-docs/Mouse.PacBio_reads_1_perwidth.flow_corrected.grp.md
git diff --staged --quiet || git commit -m "Update benchmark results [skip ci]"
git push
- name: Trigger documentation workflow
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docs.yml',
ref: 'main'
})
- name: Commit benchmark results
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add benchmarks/results-docs/SRR020730.md
git diff --staged --quiet || git commit -m "Update benchmark results [skip ci]"
git push
- name: Trigger documentation workflow
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docs.yml',
ref: 'main'
})