Skip to content

Update GitHub Sponsors username in FUNDING.yml #31

Update GitHub Sponsors username in FUNDING.yml

Update GitHub Sponsors username in FUNDING.yml #31

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential
- name: Configure CMake
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=OFF
- name: Build
run: cmake --build build --parallel $(nproc)
- name: Run unit tests
run: ./build/unit_tests
- name: Run cross-platform test
run: ./build/cross_platform_test
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=OFF
- name: Build
run: cmake --build build --parallel $(sysctl -n hw.ncpu)
- name: Run unit tests
run: ./build/unit_tests
- name: Run cross-platform test
run: ./build/cross_platform_test
- name: Run Ramsey backend test
run: ./build/ramsey_backend_test
python-bindings:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install pybind11 setuptools wheel
- name: Build and install pybaha
run: pip install .
- name: Run Python tests
run: python bindings/python/test_pybaha.py