-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (35 loc) · 979 Bytes
/
test.yml
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
name: Test
on:
push:
branches:
- 'master'
permissions:
contents: write
env:
BUILD_TYPE: Debug
jobs:
test_linux_x86-64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install System Packages
run: sudo apt install -y libboost-dev libeigen3-dev
- name: Install Python Packages
run: pip install typing-extensions
- name: Build Libtorch
run: ./script/libtorch.sh
- name: Build Libfftw
run: ./script/libfftw.sh
- name: Build Libint
run: ./script/libint.sh
- name: Configure Acorn
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build Acorn
run: cmake --build build --parallel 2
- name: Run Tests
working-directory: build
run: ctest --verbose
- name: Upload Coverage Reports
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}