Skip to content

Commit

Permalink
Add test_cellranger_atac.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
xies4 committed May 20, 2024
1 parent 8bce1fb commit 646c4bb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test_cellranger_atac.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 646c4bb

Please sign in to comment.