Skip to content

Commit

Permalink
chore: skip sp on pyspark 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikita-sakalouski committed May 29, 2024
1 parent 836ffaf commit dde5cf2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ jobs:
with:
name: python-artifacts
path: dist

- name: Install Hatch
uses: pypa/hatch@install

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
print-hash: true
run: hatch publish --yes --no-prompt
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,26 @@ matrix.version.extra-dependencies = [
"pyspark35",
] },
]

name.".*pyspark35$".features = [
"async",
"async_http",
"box",
"pandas",
"pyspark",
"sftp",
"delta",
"dev",
"test",
]

name.".*".env-vars = [
# set number of workes for parallel testing
{ key = "PYTEST_XDIST_AUTO_NUM_WORKERS", value = "2" },
# disables Koheesio logo being printed during testing
{ key = "KOHEESIO__PRINT_LOGO", value = "False" },
]

[tool.pytest.ini_options]
addopts = "-q --color=yes --order-scope=module"
log_level = "CRITICAL"
Expand Down
8 changes: 5 additions & 3 deletions tests/spark/integrations/dq/test_spark_expectations.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
from typing import List, Union

import pyspark
import pytest

from pyspark.sql import SparkSession

from koheesio.utils import get_project_root
from pyspark.sql import SparkSession

PROJECT_ROOT = get_project_root()

pytestmark = pytest.mark.spark

if pyspark.__version__.startswith("3.5"):
pytestmark = pytest.mark.skip("Spark Expectations is not supported for Spark 3.5")


class TestSparkExpectationsTransform:
"""
Expand Down

0 comments on commit dde5cf2

Please sign in to comment.