-
-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (39 loc) · 1.03 KB
/
mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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