Skip to content

Updated CorsFilter.h and .cpp file. #18

Updated CorsFilter.h and .cpp file.

Updated CorsFilter.h and .cpp file. #18

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
python3-dev \
libgtest-dev \
ninja-build \
pkg-config \
git \
libspdlog-dev \
libjsoncpp-dev \
uuid-dev \
openssl \
libssl-dev \
zlib1g-dev \
libc-ares-dev \
libcurl4-openssl-dev \
libboost-all-dev
- name: Build and Install GTest
run: |
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp lib/*.a /usr/lib
cd ${GITHUB_WORKSPACE}
- name: Install Drogon
run: |
git clone https://github.com/drogonframework/drogon
cd drogon
git checkout v1.8.7
git submodule update --init
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc)
sudo make install
sudo ldconfig
cd ${GITHUB_WORKSPACE}
- 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: Clean build directory
run: |
rm -rf build
mkdir -p build
- name: Configure CMake
run: |
cmake -B build -G Ninja
- name: Build Project
working-directory: ${{github.workspace}}
run: cmake --build build
- name: Run C++ Tests
working-directory: ${{github.workspace}}/build/bin
run: ./test_quant_fin_lib
- name: Install Python Dependencies
run: poetry install
- name: Run Python Tests
run: |
export PYTHONPATH=${{github.workspace}}
poetry run pytest python_bindings/tests/