Skip to content

Commit d7acdda

Browse files
author
Jon Palmer
committed
try to fix macos builds
1 parent afa1f44 commit d7acdda

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
matrix:
4242
os: [ubuntu-latest, macos-latest]
43-
python-version: ['3.9', '3.13'] # Test on min and max supported versions
43+
python-version: ['3.9', '3.11'] # Test on min and stable versions (avoid mappy build issues)
4444

4545
steps:
4646
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
matrix:
2121
os: [ubuntu-latest, macos-latest]
2222
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
23+
exclude:
24+
# Exclude problematic combinations where mappy fails to build
25+
- os: macos-latest
26+
python-version: '3.12'
27+
- os: macos-latest
28+
python-version: '3.13'
2329

2430
steps:
2531
- uses: actions/checkout@v4
@@ -30,19 +36,20 @@ jobs:
3036
python-version: ${{ matrix.python-version }}
3137
cache: 'pip'
3238

39+
- name: Install system dependencies
40+
run: |
41+
if [[ "$RUNNER_OS" == "Linux" ]]; then
42+
sudo apt-get update
43+
sudo apt-get install -y build-essential zlib1g-dev
44+
fi
45+
3346
- name: Install dependencies
3447
run: |
3548
python -m pip install --upgrade pip
3649
python -m pip install pytest pytest-cov
3750
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3851
python -m pip install -e .
3952
40-
- name: Install external dependencies
41-
run: |
42-
# Install basic dependencies
43-
sudo apt-get update
44-
sudo apt-get install -y build-essential zlib1g-dev
45-
4653
- name: Run unit tests
4754
run: |
4855
pytest tests/unit/ -v --cov=funannotate2 --cov-report=xml

0 commit comments

Comments
 (0)