Repository navigation
60 lines (51 loc) · 2.2 KB
/
Copy pathci_test.yml
File metadata and controls
60 lines (51 loc) · 2.2 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
name: Build SIMPLE & Run Tests (Linux/MacOS)
on:
schedule:
# Runs at 00:00 UTC every day (Nightly)
- cron: '0 0 * * *'
timezone: 'America/New_York'
# manually trigger for testing
workflow_dispatch:
jobs:
Build_and_Test:
name: Build SIMPLE & Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [24]
os: [ubuntu-26.04, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-26.04'
run: |
sudo apt-get update
echo "Install Basic Dependencies"
sudo apt-get -y install gcc cmake liblzma-dev libtiff-dev libwebp-dev libfftw3-dev libjpeg-dev gnuplot sqlite3 nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc mpich libmpich-dev libcurl4-openssl-dev libopenblas-dev liblapack-dev libarpack2-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/runner/.bash_profile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/runner/.bash_profile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install jbigkit
brew install python@3.10
brew install fftw
brew install curl
brew install openblas
brew install lapack
brew install arpack
- name: Install SIMPLE (Linux/MacOS)
run: |
./compile_clean.sh
- name: Test SIMPLE (Linux/MacOS)
run: |
# the fast gate (ctest -L fast) already ran in the build step (compile_clean.sh)
cd build
echo "-------------------- PLATFORM TESTS -------------------------"
ctest -L platform --no-tests=error --output-on-failure
echo "-------------------- LIBRARY TESTS --------------------------"
ctest -L library --no-tests=error --output-on-failure
echo "-------------------- HIGH-LEVEL TESTS -----------------------"
ctest -L highlevel --no-tests=error --output-on-failure