Skip to content

Ray casting-based depth image renderer #58

Ray casting-based depth image renderer

Ray casting-based depth image renderer #58

Workflow file for this run

name: Python API
on:
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
fail-fast: false
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '>=3.8'
- name: Activate virtual environment
run: |
python -m venv my-venv
source my-venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Upgrade pip
if: matrix.os == 'ubuntu-20.04'
run: python -m pip install --upgrade pip
- name: Build
run: python -m pip install -v ./library/python/
test:
name: Test
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
fail-fast: false
steps:
- name: Fetch the package's repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '>=3.8'
- name: Activate virtual environment
run: |
python -m venv my-venv
source my-venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Upgrade pip
if: matrix.os == 'ubuntu-20.04'
run: python -m pip install --upgrade pip
- name: Test
run: |
python -m pip install -v './library/python[test]'
pytest -rAv ./library/python/