added new tests for Texture class and Text class #193
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyNGL Linux | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name : Add System Packages | |
run : | | |
sudo apt-get update | |
sudo apt-get -y install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev python-dev-is-python3 | |
- name: install vcpkg | |
run : | | |
git clone --depth 1 https://github.com/microsoft/vcpkg ~/vcpkg | |
cd ~/vcpkg | |
./bootstrap-vcpkg.sh | |
./vcpkg install glfw3 gl3w gtest fmt freetype glm rapidjson rapidxml pybind11 | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DNO_OIIO=1 -DPYNGL_ONLY=1 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 .. \ | |
- name: Build | |
run: | | |
cd build | |
threads=`nproc` | |
cmake --build . --parallel $threads | |
find . | |
- name: Test | |
run: | | |
cd PyNGL/tests | |
cp ../../build/pyngl ./pyngl.so | |
which python3 | |
python3 -V | |
ls | |
# python3 -m unittest test_Mat2.py test_Mat3.py test_Mat4.py test_Obj.py test_Quaternion.py test_Random.py test_Util.py test_Vec2.py test_Vec3.py test_Vec4.py |