Simplify chunked octree traversals #69
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: 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/ |