Skip to content

Commit

Permalink
fix bug in ignoreopts and add back python versions 3.10 and 3.11 in m…
Browse files Browse the repository at this point in the history
…atrix

Signed-off-by: tdhooghe <[email protected]>
  • Loading branch information
tdhooghe committed Oct 23, 2024
1 parent d967ff5 commit 233b4f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kedro-datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ "3.12" ]
python-version: [ "3.10", "3.11", "3.12" ]
uses: ./.github/workflows/unit-tests.yml
with:
plugin: kedro-datasets
Expand Down
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,16 @@ test-no-spark: dataset-doctests-no-spark
check-datasets-docs:
cd kedro-datasets && python -m sphinx -WETan -j auto -D language=en -b linkcheck -d _build/doctrees docs/source _build/linkcheck

# omit Snowpark from python 3.12 testing, as it is not supported
PYTHON_VERSION := $(shell python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
ifeq ($(strip $(PYTHON_VERSION)),3.12)
IGNORE_OPTS := --ignore tests/tensorflow --ignore tests/snowflake/test_snowpark_dataset.py
else
IGNORE_OPTS := --ignore tests/tensorflow
endif

# Run test_tensorflow_model_dataset separately, because these tests are flaky when run as part of the full test-suite
# Omit Snowpark from python 3.12 testing, as it is not supported; while keeping coverage 100
dataset-tests: dataset-doctests
PYTHON_VERSION=$(shell python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
IGNORE_OPTS=""
@if [ "$(PYTHON_VERSION)" = "3.12" ]; then \
IGNORE_OPTS="--ignore tests/tensorflow --ignore tests/snowflake/test_snowpark_dataset.py"; \
else \
IGNORE_OPTS="--ignore tests/tensorflow"; \
fi; \

cd kedro-datasets && pytest tests --cov-config pyproject.toml --numprocesses 4 --dist loadfile $(IGNORE_OPTS)
cd kedro-datasets && pytest tests/tensorflow/test_tensorflow_model_dataset.py --no-cov

Expand Down

0 comments on commit 233b4f0

Please sign in to comment.