File tree Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Expand file tree Collapse file tree 1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -23,33 +23,12 @@ jobs:
2323 - name : Display python version
2424 run : python -c "import sys; print(sys.version)"
2525
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 "."
4928
5029 # Test with pytest
5130 - 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=.; pytest --junitxml=${GITHUB_WORKSPACE}/result_${{ matrix.python-version }}.xml"
5332
5433 # Artifacts
5534 - name : Upload pytest test results
You can’t perform that action at this time.
0 commit comments