Skip to content

Commit

Permalink
tests: install pymssql dependencies on python 3.8
Browse files Browse the repository at this point in the history
pymssql there are no wheels for 3.8, needs to be built
install required header files
fixes certtools#2539
  • Loading branch information
sebix committed Dec 1, 2024
1 parent 1a45d0b commit 5e15e7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/scripts/setup-full.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2020 Birger Schacht
# SPDX-FileCopyrightText: 2020 Birger Schacht, 2024 Institute for Common Good Technology
# SPDX-License-Identifier: AGPL-3.0-or-later

set -x
Expand All @@ -14,6 +14,12 @@ echo -e '-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlo
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
sudo systemctl start elasticsearch

sudo apt update
if [ $python_version == '3.8' ]; then
# for pymssql there are no wheels for 3.8 https://github.com/certtools/intelmq/issues/2539
DEBIAN_FRONTEND="noninteractive" sudo -E apt install -y build-essential freetds-dev libssl-dev libkrb5-dev
fi

# Install the dependencies of all the bots
pip install wheel
for file in intelmq/bots/*/*/REQUIREMENTS.txt; do
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
PGPORT: 5432
PGUSER: intelmq
PGPASSWORD: intelmq
python_version: ${{ matrix.python-version }}
run: bash .github/workflows/scripts/setup-full.sh

- name: Install test dependencies
Expand Down

0 comments on commit 5e15e7a

Please sign in to comment.