Replace some socket.send() calls with socket.sendall() #429
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: [ master, monetdbs ] | |
pull_request: | |
env: | |
# connections to this address should hang so we can test connect_timeout | |
TSTDEADADDRESS: "10.0.0.0:9999" | |
jobs: | |
pytest: | |
strategy: | |
matrix: | |
python-version: [ "3.7", "3.13" ] # oldest and latest supported | |
os: [ ubuntu-20.04, windows-latest, macos-13 ] # oldest available but old windows runners are scarse | |
include: | |
- python-version: "3.8" | |
os: ubuntu-20.04 | |
- python-version: "3.9" | |
os: ubuntu-20.04 | |
- python-version: "3.10" | |
os: ubuntu-20.04 | |
- python-version: "3.11" | |
os: ubuntu-20.04 | |
- python-version: "3.12" | |
os: ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install MonetDB | |
id: install-monetdb | |
uses: MonetDB/[email protected] | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check versions | |
run: | | |
python --version | |
echo "MonetDB version ${{ steps.install-monetdb.outputs.versionnumber }}" | |
shell: bash | |
- name: Configure monetdbd | |
if: steps.install-monetdb.outputs.dbfarm | |
run: | | |
set -x | |
sudo monetdbd set control=yes "${{ steps.install-monetdb.outputs.dbfarm }}" | |
sudo monetdbd set passphrase=testdb "${{ steps.install-monetdb.outputs.dbfarm }}" | |
sudo monetdbd stop "${{ steps.install-monetdb.outputs.dbfarm }}" | |
sudo monetdbd start "${{ steps.install-monetdb.outputs.dbfarm }}" || true # possibly already started by systemd | |
- name: Run tests | |
env: | |
TSTCONTROL: "${{ (steps.install-monetdb.outputs.dbfarm && 'tcp,local') || 'off' }}" | |
run: | | |
pip install -e '.[test]' | |
pytest -v | |
shell: bash | |
- name: Test wheel | |
if: runner.os != 'Windows' | |
env: | |
TSTCONTROL: "${{ (steps.install-monetdb.outputs.dbfarm && 'tcp,local') || 'off' }}" | |
run: make testwheel | |
shell: bash | |
- name: Build docs | |
if: runner.os != 'Windows' | |
run: make doc | |
shell: bash | |