Skip to content

Commit 886fabb

Browse files
committed
Fix macOS hang with running coverage
1 parent 0b138d9 commit 886fabb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ jobs:
4141
matrix:
4242
os: [ubuntu-latest, macos-latest, windows-latest]
4343
python-version: ["3.10", "3.11", "3.12"]
44-
exclude:
45-
- os: macos-latest
46-
python-version: "3.10" # macOS runners will hang on python 3.10 for unknown reasons
47-
- os: macos-latest
48-
python-version: "3.12" # macOS runners will hang on python 3.12 for unknown reasons
4944
steps:
5045
- uses: actions/checkout@v4
5146
- name: Set up Python ${{ matrix.python-version }}
@@ -107,7 +102,8 @@ jobs:
107102
run: |
108103
pytest test/ --ignore=test/autogen --reruns 2 --reruns-delay 10
109104
- name: Coverage
110-
if: matrix.python-version == '3.11'
105+
# macOS will hang when running coverage
106+
if: matrix.python-version == '3.11' and matrix.os != 'macos-latest'
111107
run: |
112108
pip install coverage
113109
coverage run -a -m pytest test --ignore=test/autogen --reruns 2 --reruns-delay 10

0 commit comments

Comments
 (0)