add API.md #135
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: Run tests | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
push: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
run-tests: | |
runs-on: ${{matrix.os}} | |
env: | |
BB_BLENDER_TEST_HOME: "~/blender" | |
LIBGL_ALWAYS_SOFTWARE: 1 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# os: [ubuntu-latest, windows-latest, macos-latest] | |
version: ['3.11'] | |
blender: ['4.2.0'] | |
# blender: ['4.1.0', '4.2.0'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install Doc support tools | |
uses: DeLaGuardo/[email protected] | |
if: "startsWith (matrix.os, 'windows')" | |
with: | |
bb: 'latest' | |
- name: Test doc | |
run: | | |
cp API.md API.md.orig | |
dos2unix API.md.orig | |
bb quickdoc | |
diff API.md.orig API.md | |
# - name: Install poetry | |
# uses: abatilo/actions-poetry@v2 | |
# with: | |
# poetry-version: "1.8.5" | |
# - name: Setup a local virtual environment | |
# run: | | |
# poetry config virtualenvs.create true --local | |
# poetry config virtualenvs.in-project true --local | |
# - uses: actions/cache@v4 | |
# name: Define a cache for the virtual environment based on the dependencies lock file | |
# with: | |
# path: ./.venv | |
# key: venv-${{ runner.os }}-${{ matrix.version }}-${{ hashFiles('poetry.lock') }} | |
# - name: Install the project dependencies | |
# run: poetry install | |
# - name: Run tests | |
# run: poetry run pytest -v | |
# - name: Restore Blender from cache | |
# id: cache-blender | |
# uses: actions/cache/restore@v4 | |
# with: | |
# path: ~/blender | |
# key: ${{ runner.os }}-blender-${{ matrix.blender }} | |
# - name: Install Blender | |
# if: steps.cache-blender.outputs.cache-hit != 'true' | |
# run: | | |
# poetry run python scripts/blender_install.py ${{ matrix.blender }} | |
# - name: "Save Blender in cache" | |
# if: steps.cache-blender.outputs.cache-hit != 'true' | |
# uses: actions/cache/save@v4 | |
# with: | |
# path: ~/blender | |
# key: ${{ steps.cache-blender.outputs.cache-primary-key }} | |
# - name: Install EGL mesa | |
# if: "startsWith (matrix.os, 'ubuntu')" | |
# run: | | |
# sudo apt-get update -y -qq | |
# sudo apt-get install -y -qq libegl-mesa0 libegl1-mesa-dev | |
# - name: Build and install extension | |
# if: ${{ matrix.blender >= '4.2.0' }} | |
# run: | | |
# poetry build | |
# poetry run basilisp run scripts/bb_extension_create.lpy --and-install | |
# - name: Build and install Add-on | |
# if: ${{ matrix.blender < '4.2.0' }} | |
# run: | | |
# poetry build | |
# poetry run python scripts/bb_package_install.py | |
# - name: Run integration tests | |
# run: | | |
# poetry run pytest --integration -v |