Barcode Custom SC Curio #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Barcode Custom SC Curio | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * 3' | |
| env: | |
| LAUNCHER: ${{github.workspace}}/tests/github/run_barcode_test.py | |
| CFG_DIR: /abga/work/andreyp/ci_isoquant/data/barcodes | |
| BIN_PATH: /abga/work/andreyp/ci_isoquant/bin/ | |
| OUTPUT_BASE: /abga/work/andreyp/ci_isoquant/output/${{github.ref_name}}/barcodes/ | |
| concurrency: | |
| group: ${{github.workflow}} | |
| cancel-in-progress: false | |
| jobs: | |
| check-changes: | |
| runs-on: | |
| labels: [isoquant] | |
| name: 'Check for recent changes' | |
| outputs: | |
| has_changes: ${{steps.check.outputs.has_changes}} | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Check for commits in last 7 days' | |
| id: check | |
| run: | | |
| # Always run on manual trigger | |
| if [ "${{github.event_name}}" = "workflow_dispatch" ]; then | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| exit 0 | |
| fi | |
| # Check for commits in last 7 days | |
| COMMITS=$(git log --oneline --since="7 days ago" | wc -l) | |
| if [ "$COMMITS" -gt 0 ]; then | |
| echo "Found $COMMITS commits in last 7 days" | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "No commits in last 7 days, skipping" | |
| echo "has_changes=false" >> $GITHUB_OUTPUT | |
| fi | |
| launch-runner: | |
| needs: check-changes | |
| if: needs.check-changes.outputs.has_changes == 'true' | |
| runs-on: | |
| labels: [isoquant] | |
| name: 'Running custom_sc Curio barcode detection QC' | |
| steps: | |
| - name: 'Cleanup' | |
| run: > | |
| set -e && | |
| shopt -s dotglob && | |
| rm -rf * | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: 'Custom SC Curio small (ArrayKmerIndexer)' | |
| if: always() | |
| shell: bash | |
| env: | |
| STEP_NAME: Human.Curio.custom_sc.small | |
| run: | | |
| export PATH=$PATH:${{env.BIN_PATH}} | |
| python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.cfg -o ${{env.OUTPUT_BASE}} | |
| - name: 'Custom SC Curio large (Array2BitKmerIndexer)' | |
| if: always() | |
| shell: bash | |
| env: | |
| STEP_NAME: Human.Curio.custom_sc.large | |
| run: | | |
| export PATH=$PATH:${{env.BIN_PATH}} | |
| python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.cfg -o ${{env.OUTPUT_BASE}} |