Expose subentity types to python for easy creation of elements on ent… #1857
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: Basix CI on MacOS | |
# This workflow will install Python dependencies, run tests and lint | |
# with a single version of Python For more information see: | |
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
tags: | |
- "v*" | |
branches: | |
- main | |
merge_group: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build and test (MacOS) | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies (non-Python) | |
run: brew install ninja | |
- name: Install Basix | |
run: pip -v install .[test] | |
- name: Run units tests | |
run: | | |
pip install pytest-xdist | |
pytest -n auto --durations 20 test/ | |
- name: Run python demos | |
run: pytest demo/python/test.py | |
- name: Run C++ demos | |
run: pytest demo/cpp/test.py |