-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (69 loc) · 2.74 KB
/
container-test.yml
File metadata and controls
78 lines (69 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Container Smoke Test
on:
push:
branches: [main]
paths: ['versions.env', 'scripts/setup.sh', '.github/workflows/container-test.yml']
pull_request:
branches: [main]
paths: ['versions.env', 'scripts/setup.sh', '.github/workflows/container-test.yml']
workflow_dispatch:
schedule:
# Monthly check that upstream images are still pullable
- cron: '0 6 1 * *'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pull-and-verify:
runs-on: [self-hosted, linux, x64]
strategy:
fail-fast: false
matrix:
include:
# Representative subset — one per registry/publisher to catch auth/rename issues
- image: staphb/bcftools:1.21
cmd: "bcftools --version"
- image: quay.io/biocontainers/minimap2:2.28--he4a0461_0
cmd: "minimap2 --version"
- image: brentp/duphold:v0.2.3
cmd: "duphold --version"
- image: getwilds/annotsv:3.4.4
cmd: "AnnotSV --version"
- image: broadinstitute/picard:3.4.0
cmd: "java -version"
- image: pgkb/pharmcat:3.2.0
cmd: "pharmcat_pipeline --version"
- image: python:3.11
cmd: "python3 --version"
- image: quay.io/biocontainers/vcfanno:0.3.7--he881be0_0
cmd: "bash -c 'vcfanno 2>&1 | grep -q \"vcfanno version\"'"
# slivar uses staphb/bcftools + pre-built binary (no dedicated container)
- image: quay.io/biocontainers/pypgx:0.26.0--pyh7e72e81_0
cmd: "pypgx --version"
steps:
- name: Pull ${{ matrix.image }}
run: docker pull "${{ matrix.image }}"
- name: Verify ${{ matrix.image }}
run: docker run --rm "${{ matrix.image }}" ${{ matrix.cmd }}
versions-env-sync:
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Verify smoke-test matrix matches versions.env
run: |
echo "Checking that container-test matrix images exist in versions.env..."
rm -f /tmp/matrix_fail
# Extract only "- image: <value>" lines from the YAML matrix block
# These always start with leading whitespace, a dash, and "image:"
grep -E '^\s+- image:' .github/workflows/container-test.yml | awk '{print $3}' | while read -r img; do
if ! grep -qF "$img" versions.env; then
echo "FAIL: container-test.yml matrix has $img but it's not in versions.env"
echo "1" > /tmp/matrix_fail
fi
done
if [ -f /tmp/matrix_fail ]; then
exit 1
fi
echo "OK: All matrix images exist in versions.env"