Skip to content

Commit

Permalink
chore: fix wheel install in weekly CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Jun 7, 2024
1 parent 78bf464 commit f595c46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ pytest_codeblocks:

.PHONY: pytest_codeblocks_pypi_wheel_cml # Test code blocks using the PyPI local wheel of Concrete ML
pytest_codeblocks_pypi_wheel_cml:
./script/make_utils/pytest_pypi_cml.sh --wheel "$(CONCRETE_PYTHON_VERSION)" --codeblocks
./script/make_utils/pytest_pypi_cml.sh --wheel --codeblocks

.PHONY: pytest_codeblocks_pypi_cml # Test code blocks using PyPI Concrete ML
pytest_codeblocks_pypi_cml:
Expand Down Expand Up @@ -761,11 +761,11 @@ check_unused_images:

.PHONY: pytest_pypi_wheel_cml # Run tests using PyPI local wheel of Concrete ML
pytest_pypi_wheel_cml:
./script/make_utils/pytest_pypi_cml.sh --wheel "$(CONCRETE_PYTHON_VERSION)"
./script/make_utils/pytest_pypi_cml.sh --wheel

.PHONY: pytest_pypi_wheel_cml_no_flaky # Run tests (except flaky ones) using PyPI local wheel of Concrete ML
pytest_pypi_wheel_cml_no_flaky:
./script/make_utils/pytest_pypi_cml.sh --wheel "$(CONCRETE_PYTHON_VERSION)" --noflaky
./script/make_utils/pytest_pypi_cml.sh --wheel --noflaky

.PHONY: pytest_pypi_cml # Run tests using PyPI Concrete ML
pytest_pypi_cml:
Expand Down
2 changes: 1 addition & 1 deletion script/make_utils/check_installation_with_all_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ do

# Install the dependencies as PyPI would do using the wheel file
PYPI_WHEEL=$(find dist -type f -name "*.whl")
python -m pip install "${PYPI_WHEEL}"
python -m pip install --extra-index-url https://pypi.zama.ai "${PYPI_WHEEL}"

elif [ "$METHOD" == "pip" ]
then
Expand Down
5 changes: 1 addition & 4 deletions script/make_utils/pytest_pypi_cml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ do
case "$1" in
"--wheel" )
USE_PIP_WHEEL='true'
shift
CONCRETE_PYTHON="$1"
;;

"--codeblocks" )
Expand Down Expand Up @@ -68,8 +66,7 @@ if ${USE_PIP_WHEEL}; then
# Install the dependencies as PyPI would do using the wheel file as well as the given
# Concrete-Python version
PYPI_WHEEL=$(find dist -type f -name "*.whl")
python -m pip install "${PYPI_WHEEL}"
python -m pip install --extra-index-url https://pypi.zama.ai "${CONCRETE_PYTHON}"
python -m pip install --extra-index-url https://pypi.zama.ai "${PYPI_WHEEL}"
else
if [ -z "${VERSION}" ]; then
python -m pip install concrete-ml
Expand Down

0 comments on commit f595c46

Please sign in to comment.