-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.35 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
name: Run Simulation Tests
on:
push:
branches:
- '*' # Trigger on push to any branch
pull_request:
branches:
- '*' # Trigger on pull request to any branch
jobs:
sil:
runs-on: ubuntu-latest
steps:
# Checkout the code with submodules
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
# Install dependencies
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest swig
# Install CMake and build tools
- name: Install CMake and build tools
run: |
sudo apt-get update
sudo apt-get install cmake gcc g++ python3-dev -y
# Configure the project
- name: Configure project with CMake
run: |
mkdir examples/build
cd examples/build
cmake ..
# Build the project
- name: Build the project
run: |
cd examples/build
make
# Run the tests
- name: Run simulation tests
run: |
cd examples/test
sh run_tests.sh