Skip to content

use glossary in spawn many #265

use glossary in spawn many

use glossary in spawn many #265

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python CI
on: [push]
env:
# This variable is required for Qt to work on CI.
# https://gist.github.com/popzxc/70fe145a3a1109d5c11f7b2f06dd269f
QT_QPA_PLATFORM: "offscreen"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.12"]
include:
- python-version: "3.9"
install-arguments: ". PySide2 usd-core==21.11 PyOpenGL" # 21.11 enables AR-2.0 by default
- python-version: "3.10"
install-arguments: ". PySide2 usd-core==23.2 PyOpenGL"
- python-version: "3.12"
install-arguments: ".[full]"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Graphviz
uses: ts-graphviz/setup-graphviz@v2
- name: Install Required Libraries
# Needed for PySide6 CI only: https://stackoverflow.com/questions/75907862/pyside6-wsl2-importerror-libegl-so-1
if: "matrix.python-version == '3.12'"
run: |
sudo apt-get install -y libegl1
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov codecov
python -m pip install ${{ matrix.install-arguments }}
- name: Test
run: |
pytest --cov .
# https://github.com/marketplace/actions/codecov
- name: Codecov Report
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}