Skip to content

Commit

Permalink
MAINT do not copy anymore conftest.py (scikit-learn#27958)
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre authored Dec 14, 2023
1 parent 4d353c6 commit 8f5ff39
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ jobs:

- name: Build and test wheels
env:
CONFTEST_PATH: ${{ github.workspace }}/conftest.py
CONFTEST_NAME: conftest.py
CIBW_PRERELEASE_PYTHONS: ${{ matrix.prerelease }}
CIBW_ENVIRONMENT: SKLEARN_SKIP_NETWORK_TESTS=1
SKLEARN_BUILD_PARALLEL=3
Expand Down
4 changes: 0 additions & 4 deletions build_tools/cirrus/arm_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ macos_arm64_wheel_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode
env:
CONFTEST_PATH: ${CIRRUS_WORKING_DIR}/conftest.py
CONFTEST_NAME: conftest.py
CIBW_ENVIRONMENT: SKLEARN_SKIP_NETWORK_TESTS=1
SKLEARN_BUILD_PARALLEL=5
CIBW_TEST_COMMAND: bash {project}/build_tools/wheels/test_wheels.sh
Expand Down Expand Up @@ -49,8 +47,6 @@ linux_arm64_wheel_task:
cpu: 4
memory: 4G
env:
CONFTEST_PATH: ${CIRRUS_WORKING_DIR}/conftest.py
CONFTEST_NAME: conftest.py
CIBW_ENVIRONMENT: SKLEARN_SKIP_NETWORK_TESTS=1
SKLEARN_BUILD_PARALLEL=5
CIBW_TEST_COMMAND: bash {project}/build_tools/wheels/test_wheels.sh
Expand Down
2 changes: 0 additions & 2 deletions build_tools/github/Windows
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ ARG PYTHON_VERSION
FROM winamd64/python:$PYTHON_VERSION-windowsservercore

ARG WHEEL_NAME
ARG CONFTEST_NAME
ARG CIBW_TEST_REQUIRES

# Copy and install the Windows wheel
COPY $WHEEL_NAME $WHEEL_NAME
COPY $CONFTEST_NAME $CONFTEST_NAME
RUN pip install $env:WHEEL_NAME

# Install the testing dependencies
Expand Down
1 change: 0 additions & 1 deletion build_tools/github/build_minimal_windows_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fi
# Build a minimal Windows Docker image for testing the wheels
docker build --build-arg PYTHON_VERSION=$PYTHON_VERSION \
--build-arg WHEEL_NAME=$WHEEL_NAME \
--build-arg CONFTEST_NAME=$CONFTEST_NAME \
--build-arg CIBW_TEST_REQUIRES="$CIBW_TEST_REQUIRES" \
-f build_tools/github/Windows \
-t scikit-learn/minimal-windows .
1 change: 0 additions & 1 deletion build_tools/github/test_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ python -m pip install pytest pandas

# Run the tests on the installed source distribution
mkdir tmp_for_test
cp scikit-learn/scikit-learn/conftest.py tmp_for_test
cd tmp_for_test

pytest --pyargs sklearn
8 changes: 0 additions & 8 deletions build_tools/wheels/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
set -e
set -x

UNAME=$(uname)

if [[ "$UNAME" != "Linux" ]]; then
# The Linux test environment is run in a Docker container and
# it is not possible to copy the test configuration file (yet)
cp $CONFTEST_PATH $CONFTEST_NAME
fi

python -c "import joblib; print(f'Number of cores (physical): \
{joblib.cpu_count()} ({joblib.cpu_count(only_physical_cores=True)})')"

Expand Down

0 comments on commit 8f5ff39

Please sign in to comment.