Skip to content

handle MySQL connection lost errors #554

handle MySQL connection lost errors

handle MySQL connection lost errors #554

Workflow file for this run

name: unit-tests
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y freetds-dev libkrb5-dev
- name: Install dependencies
run: |
cd core
pip install wheel
CASS_DRIVER_NO_CYTHON=1 pip install cassandra-driver
pip install .
pip install .[test]
- name: Run tests
run: |
cd core
PYTHONPATH=src python -m pytest -s --log-cli-level=DEBUG