Skip to content

Commit

Permalink
disables integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Nov 5, 2024
1 parent 66ec140 commit c278896
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 78 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/ci-integration-db-live.yaml

This file was deleted.

7 changes: 1 addition & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ jobs:
exit 0
fi
integration-test-non-live:
needs: [preliminary]
if: needs.preliminary.outputs.check_doc_modified == 'failure'
uses: ./.github/workflows/ci-integration-db.yaml

test:
needs: [preliminary]
if: needs.preliminary.outputs.check_doc_modified == 'failure'
Expand Down Expand Up @@ -190,7 +185,7 @@ jobs:
release:
needs: [test, test-sqlalchemy-v1, check, integration-test-non-live]
needs: [test, test-sqlalchemy-v1, check]
if: startsWith(github.ref, 'refs/tags') && github.event_name != 'pull_request'
runs-on: ubuntu-latest

Expand Down
22 changes: 21 additions & 1 deletion src/tests/integration/test_stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from sql.stats import _summary_stats
from sql.connection import SQLAlchemyConnection
from sql.connection import SQLAlchemyConnection, SparkConnectConnection


@pytest.mark.parametrize(
Expand All @@ -26,3 +26,23 @@ def test_summary_stats(fixture_name, request, test_table_name_dict):
"mean": 2.0,
"N": 5.0,
}


@pytest.mark.parametrize(
"fixture_name",
[
"setup_spark",
],
)
def test_summary_stats_spark(fixture_name, request, test_table_name_dict):
conn = SparkConnectConnection(request.getfixturevalue(fixture_name))
table = test_table_name_dict["plot_something"]
column = "x"

assert _summary_stats(conn, table, column) == {
"q1": 1.0,
"med": 2.0,
"q3": 3.0,
"mean": 2.0,
"N": 5.0,
}

0 comments on commit c278896

Please sign in to comment.