-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (41 loc) · 1.11 KB
/
test-macos-build.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
43
44
45
46
47
48
name: Testing build on macos-latest
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up requirements & configuration variables
run: |
brew update
brew install cmake
pip install --upgrade pip wheel build
git submodule update --init --recursive
pip install -r test_requirements.txt
- name: make
shell: bash
run: |
python -m build
- name: install
shell: bash
run: |
pip install dist/*.whl
- name: make test
shell: bash
run: |
export CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)
python -m pytest -rsap python/tests
- name: upload libcasm-clexmonte-macos-latest-x86_64-dist
if: always()
uses: actions/upload-artifact@v4
with:
name: libcasm-clexmonte-macos-latest-x86_64-dist
path: dist