diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82a52c8ecf..eda95f2d19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -158,6 +158,15 @@ jobs: python -m pip install --upgrade pip python -m pip install --upgrade tox + - name: Install pymssql on macOS + if: matrix.os == 'macos-latest' && matrix.python-version >= '3.11' + run: | + brew install FreeTDS + export CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix freetds)/include" + export LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix freetds)/lib" + export CPPFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix freetds)/include" + pip install --pre --no-binary :all: pymssql --no-cache --force + - name: Test with Tox run: | tox -e ${{ matrix.tox_env }} diff --git a/tox.ini b/tox.ini index c98e12d15a..d907c8ca62 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ envlist = build_doc add-ons skip_missing_interpreters = true -isolated_build = true +isolated_build = platform_system!="Darwin" # pymssql is installed before tox runs [testenv] # https://tox.wiki/en/latest/config.html#download @@ -32,7 +32,7 @@ deps = pyqtwebengine==5.15.*;platform_system!="Windows" or python_version>='3.10' coverage psycopg2-binary - pymssql;platform_system!="Darwin" or python_version>="3.11" + pymssql;platform_system!="Darwin" latest: https://github.com/biolab/orange-canvas-core/archive/refs/heads/master.zip#egg=orange-canvas-core latest: https://github.com/biolab/orange-widget-base/archive/refs/heads/master.zip#egg=orange-widget-base # GUI requirements