Skip to content

Commit

Permalink
Fix tests on macOS
Browse files Browse the repository at this point in the history
To be honest, I don’t know how it used to work. Using setup-python’s version of Python
doesn’t set the environment variable set by Homebrew’s Python to use Homebrew’s
libraries.

Don’t try this at home, because you don’t need setup-python. Just use Homebrew’s Python.
  • Loading branch information
liZe committed Apr 23, 2024
1 parent 3809836 commit 76f5837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
run: python -m pip install .[test] pytest-xdist
- name: Launch tests
run: python -m pytest -n auto
env:
DYLD_FALLBACK_LIBRARY_PATH: /opt/homebrew/lib
- name: Check coding style
run: python -m flake8
- name: Check imports order
Expand Down

0 comments on commit 76f5837

Please sign in to comment.