diff --git a/.github/workflows/code-quality-checks.yml b/.github/workflows/code-quality-checks.yml index 462d2236..b6db61a3 100644 --- a/.github/workflows/code-quality-checks.yml +++ b/.github/workflows/code-quality-checks.yml @@ -1,15 +1,7 @@ name: Code Quality Checks -on: - push: - branches: - - main - - sea-migration - - telemetry - pull_request: - branches: - - main - - sea-migration - - telemetry + +on: [pull_request] + jobs: run-unit-tests: runs-on: ubuntu-latest diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ccd3a580..127c8ff4 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,14 +1,10 @@ name: Integration Tests + on: - push: - paths-ignore: - - "**.MD" - - "**.md" - pull_request: + push: branches: - main - - sea-migration - - telemetry + pull_request: jobs: run-e2e-tests: diff --git a/tests/e2e/test_complex_types.py b/tests/e2e/test_complex_types.py index 446a6b50..4af4f7b6 100644 --- a/tests/e2e/test_complex_types.py +++ b/tests/e2e/test_complex_types.py @@ -14,7 +14,7 @@ def table_fixture(self, connection_details): # Create the table cursor.execute( """ - CREATE TABLE IF NOT EXISTS pysql_test_complex_types_table ( + CREATE TABLE IF NOT EXISTS pysql_e2e_test_complex_types_table ( array_col ARRAY, map_col MAP, struct_col STRUCT @@ -24,7 +24,7 @@ def table_fixture(self, connection_details): # Insert a record cursor.execute( """ - INSERT INTO pysql_test_complex_types_table + INSERT INTO pysql_e2e_test_complex_types_table VALUES ( ARRAY('a', 'b', 'c'), MAP('a', 1, 'b', 2, 'c', 3), @@ -34,7 +34,7 @@ def table_fixture(self, connection_details): ) yield # Clean up the table after the test - cursor.execute("DROP TABLE IF EXISTS pysql_test_complex_types_table") + cursor.execute("DROP TABLE IF EXISTS pysql_e2e_test_complex_types_table") @pytest.mark.parametrize( "field,expected_type", @@ -45,7 +45,7 @@ def test_read_complex_types_as_arrow(self, field, expected_type, table_fixture): with self.cursor() as cursor: result = cursor.execute( - "SELECT * FROM pysql_test_complex_types_table LIMIT 1" + "SELECT * FROM pysql_e2e_test_complex_types_table LIMIT 1" ).fetchone() assert isinstance(result[field], expected_type) @@ -57,7 +57,7 @@ def test_read_complex_types_as_string(self, field, table_fixture): extra_params={"_use_arrow_native_complex_types": False} ) as cursor: result = cursor.execute( - "SELECT * FROM pysql_test_complex_types_table LIMIT 1" + "SELECT * FROM pysql_e2e_test_complex_types_table LIMIT 1" ).fetchone() assert isinstance(result[field], str)