|
| 1 | +name: Barcode Mouse 10x Full Whitelist |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + schedule: |
| 6 | + - cron: '0 2 * * 6' |
| 7 | + |
| 8 | +env: |
| 9 | + LAUNCHER: ${{github.workspace}}/tests/github/run_barcode_test.py |
| 10 | + CFG_DIR: /abga/work/andreyp/ci_isoquant/data/barcodes |
| 11 | + BIN_PATH: /abga/work/andreyp/ci_isoquant/bin/ |
| 12 | + OUTPUT_BASE: /abga/work/andreyp/ci_isoquant/output/${{github.ref_name}}/barcodes/ |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{github.workflow}} |
| 16 | + cancel-in-progress: false |
| 17 | + |
| 18 | +jobs: |
| 19 | + check-changes: |
| 20 | + runs-on: |
| 21 | + labels: [isoquant] |
| 22 | + name: 'Check for recent changes' |
| 23 | + outputs: |
| 24 | + has_changes: ${{steps.check.outputs.has_changes}} |
| 25 | + steps: |
| 26 | + - name: 'Checkout' |
| 27 | + uses: actions/checkout@v3 |
| 28 | + with: |
| 29 | + fetch-depth: 0 |
| 30 | + |
| 31 | + - name: 'Check for commits in last 7 days' |
| 32 | + id: check |
| 33 | + run: | |
| 34 | + # Always run on manual trigger |
| 35 | + if [ "${{github.event_name}}" = "workflow_dispatch" ]; then |
| 36 | + echo "has_changes=true" >> $GITHUB_OUTPUT |
| 37 | + exit 0 |
| 38 | + fi |
| 39 | + # Check for commits in last 7 days |
| 40 | + COMMITS=$(git log --oneline --since="7 days ago" | wc -l) |
| 41 | + if [ "$COMMITS" -gt 0 ]; then |
| 42 | + echo "Found $COMMITS commits in last 7 days" |
| 43 | + echo "has_changes=true" >> $GITHUB_OUTPUT |
| 44 | + else |
| 45 | + echo "No commits in last 7 days, skipping" |
| 46 | + echo "has_changes=false" >> $GITHUB_OUTPUT |
| 47 | + fi |
| 48 | +
|
| 49 | + launch-runner: |
| 50 | + needs: check-changes |
| 51 | + if: needs.check-changes.outputs.has_changes == 'true' |
| 52 | + runs-on: |
| 53 | + labels: [isoquant] |
| 54 | + name: 'Running barcode detection QC' |
| 55 | + |
| 56 | + steps: |
| 57 | + - name: 'Cleanup' |
| 58 | + run: > |
| 59 | + set -e && |
| 60 | + shopt -s dotglob && |
| 61 | + rm -rf * |
| 62 | +
|
| 63 | + - name: 'Checkout' |
| 64 | + uses: actions/checkout@v3 |
| 65 | + with: |
| 66 | + fetch-depth: 1 |
| 67 | + |
| 68 | + - name: 'Mouse 10x v3 3M full whitelist' |
| 69 | + shell: bash |
| 70 | + env: |
| 71 | + STEP_NAME: Mouse.10x.v3.3M.full |
| 72 | + run: | |
| 73 | + export PATH=$PATH:${{env.BIN_PATH}} |
| 74 | + python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.cfg -o ${{env.OUTPUT_BASE}} |
| 75 | +
|
| 76 | + - name: 'Mouse 10x v2 737K full whitelist' |
| 77 | + shell: bash |
| 78 | + env: |
| 79 | + STEP_NAME: Mouse.10x.v2.737K.full |
| 80 | + run: | |
| 81 | + export PATH=$PATH:${{env.BIN_PATH}} |
| 82 | + python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.cfg -o ${{env.OUTPUT_BASE}} |
0 commit comments