Add iso macroelement on an interval #896
Workflow file for this run
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 | |
jobs: | |
build: | |
name: Build and test (MacOS) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies (non-Python) | |
run: brew install ninja | |
- name: Install Basix | |
run: | | |
python -m pip -v install .[test] | |
- name: Run units tests | |
run: | | |
python -m pip install pytest-xdist | |
python -m pytest -n auto --durations 20 test/ | |
- name: Run python demos | |
run: python -m pytest demo/python/test.py | |
- name: Run C++ demos | |
run: | | |
python -m pytest demo/cpp/test.py |