Skip to content

Add CI workflow

Add CI workflow #20

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y minisat libllvm18 llvm-18-dev llvm-18
./scripts/install-creduce.sh
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/noxfile.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}-
${{ runner.os }}-pip-
- name: Run tests with nox
run: |
ls /usr/lib/llvm-18/lib/
sudo ln -s /usr/lib/llvm-18/lib/libLLVM.so.18.1 /usr/lib/llvm-18/lib/libLLVM-18.so.1
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/lib/llvm-18/lib/"
/usr/libexec/clang_delta