File tree Expand file tree Collapse file tree 1 file changed +53
-8
lines changed Expand file tree Collapse file tree 1 file changed +53
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Linux Tests
2
2
3
- on :
4
- push :
5
- branches :
6
- - main
7
- - catch-test-setup
8
- pull_request :
9
- - main
10
- - catch-test-setup
3
+ on : [ push, pull_request ]
4
+
5
+ permissions :
6
+ contents : read # to fetch code (actions/checkout)
7
+
8
+ env :
9
+ CCACHE_DIR : " ${{ github.workspace }}/.ccache"
10
+ INSTALLDIR : " build-install"
11
+
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14
+ cancel-in-progress : true
15
+
16
+ jobs :
17
+ gcc_x86_64_linux :
18
+ name : GCC X86_64 Linux
19
+ runs-on : ubuntu-22.04
20
+
21
+ steps :
22
+ - name : Checkout xsref
23
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
24
+ with :
25
+ repository : ' scipy/xsref'
26
+ path : ' xsref'
27
+ ref : ' xsref'
28
+
29
+ - name : Checkout Catch2
30
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
31
+ with :
32
+ repository : ' catchorg/Catch2'
33
+ path : ' Catch2'
34
+ ref : ' v3.8.0'
35
+
36
+ - name : Install Ubuntu dependencies
37
+ run : |
38
+ sudo apt update
39
+ sudo apt install -y libarrow-dev libparquet-dev libzstd-dev ccache
40
+
41
+ - name : Install Catch2
42
+ run : |
43
+ cd Catch2
44
+ cmake -Bbuild -H. -DBUILD_TESTING=OFF
45
+ sudo cmake --build build/ --target install
46
+
47
+ - name : Configure and build
48
+ run : |
49
+ cmake .
50
+ make
51
+
52
+ - name : run tests
53
+ run : |
54
+ export XSREF_TABLES_PATH="xsref/tables"
55
+ ctest --output-on-failure
You can’t perform that action at this time.
0 commit comments