Skip to content

Add JOSS submission files and repo compliance #2

Add JOSS submission files and repo compliance

Add JOSS submission files and repo compliance #2

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
cpp-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B build -DAGENTGUARD_BUILD_TESTS=ON -DAGENTGUARD_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build --parallel
- name: Test
run: cd build && ctest --output-on-failure
python-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '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 package
run: pip install -e ".[dev]"
- name: Run tests
run: pytest python/tests/ -v