Skip to content

Commit

Permalink
CI: Install pymssql separately
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Sep 29, 2024
1 parent e045632 commit 07cc851
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 07cc851

Please sign in to comment.