Skip to content

Commit 6f1fcbd

Browse files
committed
Try to add a github workflow for initial tests
1 parent 9476b85 commit 6f1fcbd

File tree

1 file changed

+53
-8
lines changed

1 file changed

+53
-8
lines changed

.github/workflows/linux.yml

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,55 @@
11
name: Linux Tests
22

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

0 commit comments

Comments
 (0)