|
|
@@ -198,7 +198,7 @@ jobs:
|
|
|
shell: bash
|
|
|
run: >
|
|
|
cmake -DWANT_PYTHON_VERSION=3.6
|
|
|
- -DPython_FIND_REGISTRY=NEVER -DPython_ROOT=$pythonLocation .
|
|
|
+ -DPython_FIND_REGISTRY=NEVER -DPython_ROOT="$pythonLocation" .
|
|
|
- name: Build (Python 3.6)
|
|
|
if: contains(matrix.python, 'YES')
|
|
|
# BEGIN A
|
|
|
@@ -230,7 +230,7 @@ jobs:
|
|
|
shell: bash
|
|
|
run: >
|
|
|
cmake -DWANT_PYTHON_VERSION=3.7
|
|
|
- -DPython_FIND_REGISTRY=NEVER -DPython_ROOT=$pythonLocation .
|
|
|
+ -DPython_FIND_REGISTRY=NEVER -DPython_ROOT="$pythonLocation" .
|
|
|
- name: Build (Python 3.7)
|
|
|
if: contains(matrix.python, 'YES')
|
|
|
# BEGIN A
|
|
|
@@ -262,7 +262,7 @@ jobs:
|
|
|
shell: bash
|
|
|
run: >
|
|
|
cmake -DWANT_PYTHON_VERSION=3.8
|
|
|
- -DPython_FIND_REGISTRY=NEVER -DPython_ROOT=$pythonLocation .
|
|
|
+ -DPython_FIND_REGISTRY=NEVER -DPython_ROOT="$pythonLocation" .
|
|
|
- name: Build (Python 3.8)
|
|
|
if: contains(matrix.python, 'YES')
|
|
|
# BEGIN A
|
|
|
@@ -283,6 +283,38 @@ jobs:
|
|
|
$PYTHON_EXECUTABLE -m pytest ../tests --cov=.
|
|
|
# END B
|
|
|
|
|
|
+ - name: Setup Python (Python 3.9)
|
|
|
+ if: contains(matrix.python, 'YES')
|
|
|
+ uses: actions/setup-python@v1
|
|
|
+ with:
|
|
|
+ python-version: 3.9
|
|
|
+ - name: Configure (Python 3.9)
|
|
|
+ if: contains(matrix.python, 'YES')
|
|
|
+ working-directory: build
|
|
|
+ shell: bash
|
|
|
+ run: >
|
|
|
+ cmake -DWANT_PYTHON_VERSION=3.9
|
|
|
+ -DPython_FIND_REGISTRY=NEVER -DPython_ROOT="$pythonLocation" .
|
|
|
+ - name: Build (Python 3.9)
|
|
|
+ if: contains(matrix.python, 'YES')
|
|
|
+ # BEGIN A
|
|
|
+ working-directory: build
|
|
|
+ run: cmake --build . --config ${{ matrix.config }} --parallel 4
|
|
|
+ # END A
|
|
|
+ - name: Test (Python 3.9)
|
|
|
+ # BEGIN B
|
|
|
+ if: contains(matrix.python, 'YES')
|
|
|
+ working-directory: build
|
|
|
+ shell: bash
|
|
|
+ env:
|
|
|
+ PYTHONPATH: ${{ matrix.config }}
|
|
|
+ run: |
|
|
|
+ PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
|
|
|
+ $PYTHON_EXECUTABLE -m pip install pytest pytest-cov
|
|
|
+ export COVERAGE_FILE=.coverage.$RANDOM LLVM_PROFILE_FILE=$PWD/pid-%p.profraw
|
|
|
+ $PYTHON_EXECUTABLE -m pytest ../tests --cov=.
|
|
|
+ # END B
|
|
|
+
|
|
|
- name: Upload coverage reports
|
|
|
if: always() && matrix.config == 'Coverage'
|
|
|
working-directory: build
|
|
|
@@ -329,13 +361,27 @@ jobs:
|
|
|
mv panda3d-1.10.7/thirdparty thirdparty
|
|
|
rmdir panda3d-1.10.7
|
|
|
(cd thirdparty/darwin-libs-a && rm -rf rocket)
|
|
|
+ - name: Set up Python 3.9
|
|
|
+ uses: actions/setup-python@v1
|
|
|
+ with:
|
|
|
+ python-version: 3.9
|
|
|
+ - name: Build Python 3.9
|
|
|
+ shell: bash
|
|
|
+ run: |
|
|
|
+ python makepanda/makepanda.py --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir="$pythonLocation/include" --python-libdir="$pythonLocation/lib" --verbose --threads=4
|
|
|
+ - name: Test Python 3.9
|
|
|
+ shell: bash
|
|
|
+ run: |
|
|
|
+ python -m pip install pytest
|
|
|
+ PYTHONPATH=built LD_LIBRARY_PATH=built/lib DYLD_LIBRARY_PATH=built/lib python -m pytest
|
|
|
- name: Set up Python 3.8
|
|
|
uses: actions/setup-python@v1
|
|
|
with:
|
|
|
python-version: 3.8
|
|
|
- name: Build Python 3.8
|
|
|
+ shell: bash
|
|
|
run: |
|
|
|
- python makepanda/makepanda.py --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir=$pythonLocation/include --python-libdir=$pythonLocation/lib --verbose --threads=4
|
|
|
+ python makepanda/makepanda.py --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir="$pythonLocation/include" --python-libdir="$pythonLocation/lib" --verbose --threads=4
|
|
|
- name: Test Python 3.8
|
|
|
shell: bash
|
|
|
run: |
|
|
|
@@ -346,8 +392,9 @@ jobs:
|
|
|
with:
|
|
|
python-version: 3.7
|
|
|
- name: Build Python 3.7
|
|
|
+ shell: bash
|
|
|
run: |
|
|
|
- python makepanda/makepanda.py --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir=$pythonLocation/include --python-libdir=$pythonLocation/lib --verbose --threads=4
|
|
|
+ python makepanda/makepanda.py --git-commit=${{github.sha}} --outputdir=built --everything --no-eigen --python-incdir="$pythonLocation/include" --python-libdir="$pythonLocation/lib" --verbose --threads=4
|
|
|
- name: Test Python 3.7
|
|
|
shell: bash
|
|
|
run: |
|