Skip to content

Commit 2071fa9

Browse files
adjust the workflow to ensure that Homebrew handles Python installations and symlinks correctly. Add a step to unlink any existing Python versions before installing the required version and explicitly link the newly installed version
1 parent e9b3d93 commit 2071fa9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/osx-test-with-brew.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18-
- name: Install snap7
19-
run: brew install snap7 python@${{ matrix.python-version }}
18+
- name: Unlink existing Python
19+
run: brew unlink python@${{ matrix.python-version }} || true
20+
- name: Install snap7 and Python
21+
run: |
22+
brew install snap7 python@${{ matrix.python-version }}
23+
brew link --overwrite python@${{ matrix.python-version }}
2024
- name: Install python-snap7
2125
run: |
2226
python${{ matrix.python-version }} -m venv venv
2327
venv/bin/python3 -m pip install --upgrade pip setuptools
2428
venv/bin/python3 -m pip install -e .[test]
2529
- name: Run pytest
26-
run: |
27-
venv/bin/pytest -m "server or util or client or mainloop"
28-
sudo venv/bin/pytest -m partner
30+
run: |

0 commit comments

Comments
 (0)