Skip to content

Commit 00c280a

Browse files
Update results processing for new website (#847)
* temp * add get_sha to workflow_utils * refactor results # ci skip * fixes # ci skip * install gitpython * upload new results path * # publish * test process * test process # publish * test process # publish * temp * test process # publish * Revert "temp" This reverts commit 5ccbdfa. * temp # publish * pre-commit * remove experimental website repo --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 637163f commit 00c280a

2 files changed

Lines changed: 101 additions & 284 deletions

File tree

.github/workflows/process_results.yml

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,15 @@ jobs:
3232
with:
3333
fetch-depth: 1
3434
repository: openproblems-bio/website
35+
ref: main
3536
path: website
3637
token: ${{ secrets.GH_ACTIONS_WEBSITE_PAT }}
3738

38-
- name: Checkout NBT reproduciblity repo
39-
uses: actions/checkout@v3
40-
with:
41-
fetch-depth: 1
42-
repository: openproblems-bio/website-experimental
43-
path: nbt2022-reproducibility
44-
token: ${{ secrets.GH_ACTIONS_NBT_REPRODUCIBILITY_PAT }}
45-
4639
- name: Set up website Git branch
4740
working-directory: website
4841
run: |
4942
git checkout -b $UPDATE_BRANCH_NAME
5043
51-
- name: Set up nbt2022-reproducibility Git branch
52-
working-directory: nbt2022-reproducibility
53-
run: |
54-
git checkout -b $UPDATE_BRANCH_NAME
55-
5644
- name: Set up Python
5745
uses: actions/setup-python@v4
5846
with:
@@ -86,19 +74,13 @@ jobs:
8674
S3_URI="s3://openproblems-nextflow/cwd_example"
8775
fi
8876
aws s3 cp --quiet --recursive "${S3_URI}" /tmp/results/
89-
rm -r website/data/results/*/
90-
python openproblems/workflow/parse_nextflow.py /tmp website/data/results
77+
python openproblems/workflow/parse_nextflow.py /tmp website/results
9178
9279
- name: Upload results
9380
uses: actions/upload-artifact@main
9481
with:
9582
name: results
96-
path: website/data/results
97-
98-
- name: Move raw output
99-
run: |
100-
rsync -v -r --include "*.raw.json" --include "*/" --exclude "*" website/data/results/ nbt2022-reproducibility/results
101-
rm website/data/results/*/*.raw.json
83+
path: website/results
10284

10385
- name: Push to openproblems-bio/website
10486
if: |
@@ -119,41 +101,13 @@ jobs:
119101
with:
120102
branch: ${{ env.UPDATE_BRANCH_NAME }}
121103
delete-branch: true
122-
base: main
123104
title: '[auto] Update benchmark results'
124-
reviewers: scottgigante-immunai,rcannood,dburkhardt
105+
reviewers: scottgigante-immunai,rcannood
125106
path: './website'
126107
token: ${{ secrets.GH_ACTIONS_WEBSITE_PAT }}
127108
author: "openproblems-bio <singlecellopenproblems@protonmail.com>"
128109
commit-message: "Update benchmark results"
129110

130-
- name: Push to openproblems-bio/nbt2022-reproducibility
131-
if: |
132-
github.event_name == 'repository_dispatch' ||
133-
endsWith(github.event.head_commit.message, '# publish')
134-
shell: bash
135-
working-directory: './nbt2022-reproducibility'
136-
env:
137-
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_NBT_REPRODUCIBILITY_PAT }}
138-
run: |
139-
git push origin "${UPDATE_BRANCH_NAME}"
140-
141-
- name: Create nbt2022-reproducibility Pull Request
142-
if: |
143-
github.event_name == 'repository_dispatch' ||
144-
endsWith(github.event.head_commit.message, '# publish')
145-
uses: peter-evans/create-pull-request@v4
146-
with:
147-
branch: ${{ env.UPDATE_BRANCH_NAME }}
148-
delete-branch: true
149-
base: main
150-
title: '[auto] Update benchmark results'
151-
reviewers: scottgigante-immunai,rcannood
152-
path: './nbt2022-reproducibility'
153-
token: ${{ secrets.GH_ACTIONS_NBT_REPRODUCIBILITY_PAT }}
154-
author: "openproblems-bio <singlecellopenproblems@protonmail.com>"
155-
commit-message: "Update benchmark results"
156-
157111
- name: AWS S3 cleanup
158112
if: "github.event_name == 'repository_dispatch'"
159113
env:

0 commit comments

Comments
 (0)