Update issue templates #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Simulation Tests | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
sil: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: | |
- basic_heater | |
- basic_baremetal | |
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 -p examples/${{ matrix.example }}/build | |
cd examples/${{ matrix.example }}/build | |
cmake .. | |
# Build the project | |
- name: Build the project | |
run: | | |
cd examples/${{ matrix.example }}/build | |
make | |
# Run the tests | |
- name: Run simulation tests | |
run: | | |
cd examples/${{ matrix.example }}/test | |
sh run_tests.sh |