-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (33 loc) · 1.2 KB
/
test-python.yaml
File metadata and controls
33 lines (33 loc) · 1.2 KB
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
name: Run Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pytest:
strategy:
matrix:
version: [15,16,17]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: build instrumenter
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main'
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main'
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main'
sudo apt remove clang-15 clang-14 clang-13 clang-12 llvm-15 llvm-14 llvm-13 llvm-12
sudo apt-get update
sudo apt-get install ninja-build catch2 clang-${{ matrix.version }} libclang-${{ matrix.version }}-dev libclang-cpp${{ matrix.version }}-dev
python -m pip install build
./build_python_wheel_local.sh
- run: python -m pip install . pytest
- name: run pytest
run: python -m pytest python_src/test