From 646c4bb60904b61d1d97c4932d1032e7a601be70 Mon Sep 17 00:00:00 2001 From: xies4 Date: Mon, 20 May 2024 14:04:21 -0400 Subject: [PATCH] Add test_cellranger_atac.yaml --- .github/workflows/test_cellranger_atac.yaml | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test_cellranger_atac.yaml diff --git a/.github/workflows/test_cellranger_atac.yaml b/.github/workflows/test_cellranger_atac.yaml new file mode 100644 index 0000000..a8d45c6 --- /dev/null +++ b/.github/workflows/test_cellranger_atac.yaml @@ -0,0 +1,27 @@ +name: Test Spaceranger Version + +on: + push: + branches: [ main ] + paths: + - 'dockerhub_repos/cellranger-atac/**' + +jobs: + test_cellranger_version: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Validate version consistency + run: | + # Extract the expected version from the 'spaceranger --version' output + VERSION=$(docker run ccrsfifx/cellranger-atac:2.1.0 cellranger-atac --version | awk '{print $2}') + # Compare with the Docker Hub tag + if [[ "$VERSIONV" != "cellranger-atac-2.1.0" ]]; then + echo "Error: Cellranger-atac version ($VERSIONV) doesn't match Docker Hub tag (${{ steps.tag-info.outputs.tag }})" + exit 1 + else + echo "Cellranger-atac version matches Docker Hub tag." + fi