Skip to content

Add test

Add test #2

Workflow file for this run

name: Test
on:
push:
branches:
- main
jobs:
test:
name: Test PyLLVMPass
runs-on: ubuntu-latest
steps:
- name: "checkout repository"
uses: actions/checkout@v4
uses: actions-rust-lang/setup-rust-toolchain@v1

Check failure on line 15 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 15, Col: 9): 'uses' is already defined
- name: "install deps"
run: |
sudo apt update
sudo apt install clang-18
ls /usr/lib/x86_64-linux-gnu/ | grep libclang
cargo build
pip install pytest
- name: "run tests"
run: |
cd test
LLVM_CONFIG=llvm-config-18 PYLLVM_PLUGIN_PATH=../target/debug/libpyllvmpass.so pytest