-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.63 KB
/
run-tests.yaml
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
on:
push:
branches:
- master
pull_request:
name: Build the tool
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Cache installed
id: installed
uses: actions/cache@v4
with:
path: extern/installed
key: deps-${{ hashFiles('extern/**/build.sh') }}
- name: Build igraph
if: steps.installed.outputs.cache-hit != 'true'
run: |
cd extern/igraph
bash build.sh
- name: Prepare the build
run: |
cmake \
-S . \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=extern/installed
- name: Check all transitive dependencies are pinned
run: |
cat extern/CMakeLists.txt | \
grep "FetchContent_MakeAvailable" | \
sed "s/FetchContent_MakeAvailable(//" | \
sed "s/)//" | \
tr '[:upper:]' '[:lower:]' | \
sort > requested.txt
ls build/_deps/ | \
grep "src$" | \
sed "s/-src//" | \
sort > observed.txt
diffs=$(diff observed.txt requested.txt )
if [[ $diffs != '' ]]
then
exit 1
fi
- name: Compile the tool
run: cmake --build build
- name: Download Zeisel
uses: wei/wget@v1
with:
args: -O matrix.mtx.gz https://github.com/kanaverse/random-test-files/releases/download/zeisel-brain-v1.0.0/matrix.mtx.gz
- name: Run the tool
run: ./build/scran --mito-list 19972-20005 matrix.mtx.gz