Skip to content

Commit e22b7ca

Browse files
committed
disabling windows CI
1 parent 06405c8 commit e22b7ca

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
marks="not production and not uses_test_server"
124124
fi
125125
126-
pytest -n 0 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
126+
pytest -n 4 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
127127
128128
- name: Run tests on Ubuntu Production
129129
if: matrix.os == 'ubuntu-latest'
@@ -138,12 +138,12 @@ jobs:
138138
marks="production and not uses_test_server"
139139
fi
140140
141-
pytest -n 0 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
141+
pytest -n 4 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
142142
143143
- name: Run tests on Windows
144144
if: matrix.os == 'windows-latest'
145145
run: | # we need a separate step because of the bash-specific if-statement in the previous one.
146-
pytest -n 0 --durations=20 --dist load -sv --reruns 5 --reruns-delay 1 -m "not uses_test_server"
146+
pytest -n 4 --durations=20 --dist load -sv --reruns 5 --reruns-delay 1 -m "not uses_test_server"
147147
148148
- name: Cleanup Docker setup
149149
if: always()

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ def _start_docker():
317317

318318
@pytest.fixture(scope="session", autouse=True)
319319
def openml_docker_stack(tmp_path_factory, worker_id):
320+
# Skip Docker setup in CI on Windows given docker images are for Linux
321+
is_ci = os.environ.get("CI") == "true"
322+
is_windows = sys.platform == "win32" or os.name == "nt"
323+
324+
if is_ci and is_windows:
325+
yield
326+
return
327+
320328
# For local development with single worker
321329
if worker_id == "master":
322330
_start_docker()

0 commit comments

Comments
 (0)