Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,25 @@ name: benchmark
on:
push:
branches: [main]
pull_request:
pull_request_target:
workflow_dispatch:

# DBG, check if concurrency is the issue
concurrency:
group: ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
BENCHMARK_GIAB_NA12878_AGILENT_TOKEN: ${{ secrets.BENCHMARK_GIAB_NA12878_AGILENT_TOKEN }}
BO_AGILENT_TOKEN: ${{ secrets.BO_AGILENT_TOKEN }}
CO_AGILENT_TOKEN: ${{ secrets.CO_AGILENT_TOKEN }}
BO_CORE_UNIT_TOKEN: ${{ secrets.BO_CORE_UNIT_TOKEN }}
BENCHMARK_GIAB_NA12878_TWIST_TOKEN: ${{ secrets.BENCHMARK_GIAB_NA12878_TWIST_TOKEN }}
SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN: ${{ secrets.SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN }}

jobs:
# 1. SETUP: Dynamically find the samples
setup:
runs-on: ubuntu-latest
outputs:
samples: ${{ steps.set-matrix.outputs.samples }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- id: set-matrix
run: |
# Auto-discover benchmarks from resources/regions/, but only keep
Expand All @@ -40,6 +33,9 @@ jobs:
evaluate:
needs: setup
runs-on: ubuntu-latest
environment: snakemake-workflow
env:
SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN: ${{ secrets.SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN }}
permissions:
statuses: write
contents: read
Expand All @@ -62,6 +58,8 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Download reference genome
uses: snakemake/snakemake-github-action@v2.1.1
Expand Down Expand Up @@ -124,8 +122,13 @@ jobs:
report:
needs: evaluate
runs-on: ubuntu-latest
environment: snakemake-workflow
env:
SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN: ${{ secrets.SNAKEMAKE_STORAGE_ZENODO_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Download all results
uses: actions/download-artifact@v4
Expand Down
Loading