From 0b10c22648f485391fef5d7eb3a6c24df4649b7f Mon Sep 17 00:00:00 2001 From: Sebastian Smiley Date: Wed, 16 Aug 2023 13:01:29 -0400 Subject: [PATCH] Debugging GitHub actions --- .github/workflows/test.yml | 9 +++++---- tests/test_core.py | 4 ++-- tests/test_replication_key.py | 2 +- tests/test_selected_columns_only.py | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f9d8d3..8c6c25e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,15 +24,16 @@ jobs: - name: Fix Permissions run: | chmod 777 -R ./ssh_tunnel/ssh-server-config + + - name: Debugging GitHub actions + run: | + sudo apt-get update + sudo apt-get install libmysqlclient-dev - name: Set up MySQL containers (SSH Included) run: | docker compose -f docker-compose.yml up -d - - name: Debugging GitHub actions - run: | - sudo find / -type s - - uses: isbang/compose-action@v1.4.1 - name: Set up Python ${{ matrix.python-version }} diff --git a/tests/test_core.py b/tests/test_core.py index d7fd816..5ba82b7 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -23,12 +23,12 @@ SAMPLE_CONFIG = { "start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), - "sqlalchemy_url": f"mysql+mysqldb://root:password@localhost:3306/melty", + "sqlalchemy_url": f"mysql+mysqldb://root:password@127.0.0.1:3306/melty", } NO_SQLALCHEMY_CONFIG = { "start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), - "host": "localhost", + "host": "127.0.0.1", "port": 3306, "user": "root", "password": "password", diff --git a/tests/test_replication_key.py b/tests/test_replication_key.py index 0604662..72110ac 100644 --- a/tests/test_replication_key.py +++ b/tests/test_replication_key.py @@ -11,7 +11,7 @@ TABLE_NAME = "test_replication_key" SAMPLE_CONFIG = { "start_date": pendulum.datetime(2022, 11, 1).to_iso8601_string(), - "sqlalchemy_url": f"mysql+mysqldb://root:password@localhost:3306/melty", + "sqlalchemy_url": f"mysql+mysqldb://root:password@127.0.0.1:3306/melty", } diff --git a/tests/test_selected_columns_only.py b/tests/test_selected_columns_only.py index 31a805a..340d27d 100644 --- a/tests/test_selected_columns_only.py +++ b/tests/test_selected_columns_only.py @@ -8,7 +8,7 @@ TABLE_NAME_SELECTED_COLUMNS_ONLY = "test_selected_columns_only" SAMPLE_CONFIG = { - "sqlalchemy_url": f"mysql+mysqldb://root:password@localhost:3306/melty", + "sqlalchemy_url": f"mysql+mysqldb://root:password@127.0.0.1:3306/melty", }