Skip to content

Cleaned up shell script #3

Cleaned up shell script

Cleaned up shell script #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake python3-dev
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Build C++ Library
run: |
mkdir build
cd build
cmake ..
cmake --build .
- name: Run C++ Tests
run: |
cd build
./test_quant_fin_lib
- name: Install Python Dependencies
run: poetry install
- name: Run Python Tests
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
poetry run pytest python_bindings/tests/