Skip to content

Test extras

Test extras #6

name: Simple C++ network
on: [pull_request]
jobs:
compilation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies and pynucastro
run: |
sudo apt-get update -y -qq
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0
python -m pip install --upgrade pip
pip install .
- name: Build the network
run: |
mkdir work
cd work
cp ../.github/workflows/simple_cxx_network/* .
python test_simple_cxx.py
make
- name: Run and compare
run: |
cd work
./main > test.out
diff test.out simple_cxx_net.out