-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.04 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Tests
on:
push:
branches:
- main
pull_request: {}
workflow_dispatch:
jobs:
tests:
if: github.repository == 'gen740/cppygen'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup pip
run: |
pip install -U pip
- name: Install llvm-15 and llvm-16
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16 all
sudo apt install clang-15 llvm-15 llvm-15-dev libclang-15-dev
- name: Install
run: |
pip install .
- name: Tests (llvm-15)
run: |
pytest
env:
CPPYGEN_LIBCLANG_PATH: /usr/lib/llvm-15/lib/libclang.so
- name: Tests (llvm-16)
run: |
pytest
env:
CPPYGEN_LIBCLANG_PATH: /usr/lib/llvm-16/lib/libclang.so