File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -23,33 +23,13 @@ jobs:
23
23
- name : Display python version
24
24
run : python -c "import sys; print(sys.version)"
25
25
26
- # Install pip and packages
27
- - name : Install pip
28
- run : python -m pip install --upgrade pip
29
-
30
- - name : Install packages
31
- run : pip install pytest treelib
32
-
33
- # Install clang and it's python inteface via apt
34
- - name : Add llvm keys
35
- run : |
36
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
37
- echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | sudo tee -a /etc/apt/sources.list
38
- echo 'deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | sudo tee -a /etc/apt/sources.list
39
- - name : Install libclang and its python bindings
40
- run : |
41
- sudo apt-get update
42
- sudo apt-get install -y libclang-12-dev python3-clang-12
43
-
44
- # Add dist-package to path to enable apt installed python3-clang import
45
- - name : Add dist-packages to PYTHONPATH
46
- run : echo "PYTHONPATH=${PYTHON_PATH}:/usr/lib/python3/dist-packages" >> $GITHUB_ENV
47
- - name : Display PYTHONPATH
48
- run : python -c "import sys; print('\n'.join(sys.path))"
26
+ - name : Build docker
27
+ run : docker build --pull --rm -f "Dockerfile" -t clangbind:latest "."
49
28
50
29
# Test with pytest
51
30
- name : Test with pytest
52
- run : pytest --junitxml=${GITHUB_WORKSPACE}/result_${{ matrix.python-version }}.xml
31
+ run : docker run --rm -t clangbind:latest -c "export PYTHONPATH=.; \
32
+ pytest --junitxml=${GITHUB_WORKSPACE}/result_${{ matrix.python-version }}.xml"
53
33
54
34
# Artifacts
55
35
- name : Upload pytest test results
You can’t perform that action at this time.
0 commit comments