-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathBarcode.Mouse.10x.FullWhitelist.yml
More file actions
84 lines (74 loc) · 2.36 KB
/
Barcode.Mouse.10x.FullWhitelist.yml
File metadata and controls
84 lines (74 loc) · 2.36 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
79
80
81
82
83
84
name: Barcode Mouse 10x Full Whitelist
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 6'
env:
LAUNCHER: ${{github.workspace}}/isoquant_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 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: 'Mouse 10x v3 3M full whitelist'
if: always()
shell: bash
env:
STEP_NAME: Mouse.10x.v3.3M.full
run: |
export PATH=$PATH:${{env.BIN_PATH}}
python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.yaml -o ${{env.OUTPUT_BASE}}
- name: 'Mouse 10x v2 737K full whitelist'
shell: bash
if: always()
env:
STEP_NAME: Mouse.10x.v2.737K.full
run: |
export PATH=$PATH:${{env.BIN_PATH}}
python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.yaml -o ${{env.OUTPUT_BASE}}