Skip to content

Commit 734fb8d

Browse files
committed
Try to get OSX CI working again
1 parent edc657c commit 734fb8d

File tree

3 files changed

+47
-45
lines changed

3 files changed

+47
-45
lines changed

.github/workflows/osx.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: pymathics-natlang (macOS)
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: '**'
8+
9+
jobs:
10+
build:
11+
env:
12+
LDFLAGS: "-L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib/unwind -lunwind"
13+
CPPFLAGS: "-I/opt/homebrew/opt/llvm/include"
14+
PATH: "/opt/homebrew/opt/llvm/bin:$PATH"
15+
runs-on: macos-latest
16+
strategy:
17+
matrix:
18+
os: [macOS]
19+
python-version: ['3.13']
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
brew update
29+
brew install llvm lld tesseract enchant mysql
30+
python -m pip install --upgrade pip
31+
pip install pytest pyenchant
32+
# Go over and comment out stuff when next Mathics core and Mathics-scanner are released
33+
python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
34+
git clone https://github.com/Mathics3/mathics-core
35+
(cd mathics-core && pip3 install -e .[full])
36+
(cd mathics-core && bash ./admin-tools/make-JSON-tables.sh)
37+
python -m pip install -e git+https://github.com/Mathics3/Mathics3-Module-Base#egg=Mathics3-Module-Base
38+
python -m pip install -e .
39+
- name: Install Mathics3 natlang Module
40+
run: |
41+
make develop
42+
- name: Test natlang
43+
run: |
44+
make check

.github/workflows/osx.yml-needs-enchant-fixup

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pymathics.natlang (ubuntu)
1+
name: pymathics.natlang (Ubuntu)
22

33
on:
44
push:
@@ -11,7 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
14+
# 3.9 works but it takes a long time to gather dependencies
15+
python-version: ['3.10', '3.11', '3.12', '3.13']
1516
steps:
1617
- uses: actions/checkout@v4
1718
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)