Skip to content

Commit c1456c5

Browse files
committed
refactor: Try tags for GPU CI
askimed/nf-test#272
1 parent 9d05040 commit c1456c5

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/actions/nf-test-action/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: "nf-test Action"
22
description: "Runs nf-test with common setup steps"
33
inputs:
4-
path:
5-
description: "Path to test"
6-
required: false
74
profile:
85
description: "Profile to use"
96
required: true
@@ -13,6 +10,9 @@ inputs:
1310
total_shards:
1411
description: "Total number of test shards(NOT the total number of matrix jobs)"
1512
required: true
13+
tags:
14+
description: "Tags to test (`<tags>[,<tags>...]`)"
15+
required: false
1616

1717
runs:
1818
using: "composite"
@@ -70,18 +70,19 @@ runs:
7070
env:
7171
SENTIEON_LICSRVR_IP: ${{ env.SENTIEON_LICSRVR_IP }}
7272
SENTIEON_AUTH_MECH: "GitHub Actions - token"
73+
TAGS: ${{ inputs.tags && format('--tag {0}', inputs.tags) || '' }}
7374
run: |
7475
NFT_WORKDIR=~ \
7576
nf-test test \
7677
--profile=${{ inputs.profile }} \
7778
--tap=test.tap \
7879
--verbose \
7980
--ci \
80-
# FIXME this doesn't work with a path? --changed-since HEAD^ \
81+
--changed-since HEAD^ \
8182
--shard ${{ inputs.shard }}/${{ inputs.total_shards }} \
8283
--filter process,workflow \
8384
--follow-dependencies \
84-
${{ inputs.path }}
85+
${{ env.TAGS }}
8586
8687
# TODO If no test.tap, then make one to spoof?
8788
- uses: pcolby/tap-summary@0959cbe1d4422e62afc65778cdaea6716c41d936 # v1

.github/workflows/gpu-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
shard: [1, 2]
4646
# TODO Pass these in from GitHub PR trigger events
4747
include:
48-
- path: modules/nf-core/parabricks/applybqsr
48+
- tags: parabricks/applybqsr
4949
profile: [docker_self_hosted, singularity]
50-
- path: modules/nf-core/parabricks/fq2bam
50+
- tags: parabricks/fq2bam
5151
profile: [docker_self_hosted, singularity]
52-
- path: modules/nf-core/parabricks/fq2bammeth
52+
- tags: parabricks/fq2bammeth
5353
profile: [docker_self_hosted, singularity]
5454
env:
5555
NXF_ANSI_LOG: false

0 commit comments

Comments
 (0)