Skip to content

Commit d65f813

Browse files
authored
Merge pull request #39 from icgc-argo-workflows/song-score-upload@2.8.0
[release]
2 parents fe02e48 + 7ca2896 commit d65f813

10 files changed

Lines changed: 26 additions & 18 deletions

File tree

.github/workflows/build-test-release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22-
- name: Set up Python 3.6
23-
uses: actions/setup-python@v2
22+
- name: Set up Python 3.10
23+
uses: actions/setup-python@v3
2424
with:
25-
python-version: 3.6
25+
python-version: "3.10"
26+
architecture: "x64"
27+
env:
28+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
2629

2730
- name: Extract package name and version from branch name
2831
id: get_pkg_info
@@ -80,10 +83,13 @@ jobs:
8083
steps:
8184
- uses: actions/checkout@v2
8285

83-
- name: Set up Python 3.6
84-
uses: actions/setup-python@v2
86+
- name: Set up Python 3.10
87+
uses: actions/setup-python@v3
8588
with:
86-
python-version: 3.6
89+
python-version: "3.10"
90+
architecture: "x64"
91+
env:
92+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
8793

8894
- name: Install dependencies
8995
run: |
@@ -177,6 +183,8 @@ jobs:
177183
body: |
178184
* Release `${{ steps.get_pkg_info.outputs.pkg_name }}.v${{ steps.get_pkg_info.outputs.pkg_ver }}` (${{ github.sha }})
179185
* Package `${{ steps.prep_assets.outputs.pkg_tar }}` (sha256: `${{ steps.prep_assets.outputs.pkg_tar_sha }}`)
186+
* Package URI `github.com/${{ needs.build.outputs.repo_lowercase }}/${{ steps.get_pkg_info.outputs.pkg_name }}@${{ steps.get_pkg_info.outputs.pkg_ver }}`
187+
* Run the package: `nextflow run ${{ needs.build.outputs.repo_lowercase }}/${{ steps.get_pkg_info.outputs.pkg_name }}/main.nf -r ${{ steps.get_pkg_info.outputs.pkg_name }}.v${{ steps.get_pkg_info.outputs.pkg_ver }} -params-file <params-json-file>`
180188
draft: false
181189
prerelease: false
182190

process/score_download.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ process scoreDownload {
3434
cpus params.cpus
3535
memory "${params.mem} GB"
3636

37-
container "overture/score:${params.container_version}"
38-
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir
37+
container "overture/score:${params.score_container_version ?: params.container_version}"
38+
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir ? true : false
3939

4040
label "scoreDownload"
4141
tag "${analysis_id}"

process/score_upload.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ process scoreUpload {
3131
cpus params.cpus
3232
memory "${params.mem} GB"
3333

34-
container "overture/score:${params.container_version}"
34+
container "overture/score:${params.score_container_version ?: params.container_version}"
3535

3636
tag "${analysis_id}"
3737

process/song_get_analysis.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ process songGetAnalysis {
3232
cpus params.cpus
3333
memory "${params.mem} GB"
3434

35-
container "overture/song-client:${params.container_version}"
36-
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir
35+
container "overture/song-client:${params.song_container_version ?: params.container_version}"
36+
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir ? true : false
3737

3838
tag "${analysis_id}"
3939

process/song_manifest.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ process songManifest {
2727
return params.max_retries ? 'retry' : 'finish'
2828
}
2929

30-
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir
30+
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir ? true : false
3131

3232
pod = [secret: workflow.runName + "-secret", mountPath: "/tmp/rdpc_secret"]
3333

3434
cpus params.cpus
3535
memory "${params.mem} GB"
3636

37-
container "overture/song-client:${params.container_version}"
37+
container "overture/song-client:${params.song_container_version ?: params.container_version}"
3838

3939
tag "${analysis_id}"
4040

process/song_publish.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ process songPublish {
3030
cpus params.cpus
3131
memory "${params.mem} GB"
3232

33-
container "overture/song-client:${params.container_version}"
33+
container "overture/song-client:${params.song_container_version ?: params.container_version}"
3434

3535
tag "${analysis_id}"
3636

process/song_submit.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ process songSubmit {
3030
cpus params.cpus
3131
memory "${params.mem} GB"
3232

33-
container "overture/song-client:${params.container_version}"
33+
container "overture/song-client:${params.song_container_version ?: params.container_version}"
3434

3535
tag "${study_id}"
3636
label "songSubmit"

song-score-upload/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222

2323
nextflow.enable.dsl = 2
24-
version = '2.7.0'
24+
version = '2.8.0'
2525

2626
// universal params go here, change default value as needed
2727
params.publish_dir = "" // set to empty string will disable publishDir

song-score-upload/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "song-score-upload",
3-
"version": "2.7.0",
3+
"version": "2.8.0",
44
"description": "SONG/SCORE upload",
55
"main": "main.nf",
66
"deprecated": false,

song-score-upload/tests/checker.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
nextflow.enable.dsl = 2
28-
version = '0.2.6' // package version
28+
version = '2.8.0'
2929

3030
// universal params go here, change default value as needed
3131
params.max_retries = 5 // set to 0 will disable retry

0 commit comments

Comments
 (0)