Skip to content
5 changes: 5 additions & 0 deletions .ci/docker/common/install_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ install_ubuntu() {
libssl-dev \
zip

# These libraries are needed by TorchVision
apt-get install -y --no-install-recommends \
libjpeg-dev \
libpng-dev

# Cleanup package manager
apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
10 changes: 9 additions & 1 deletion .ci/docker/common/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@ install_miniconda() {

install_python() {
pushd /opt/conda
# Install the correct Python version
# Install the selected Python version for CI jobs
as_ci_user conda create -n "py_${PYTHON_VERSION}" -y --file /opt/conda/conda-env-ci.txt python="${PYTHON_VERSION}"

# From https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_conda.sh
if [[ $(uname -m) == "aarch64" ]]; then
conda_install "openblas==0.3.28=*openmp*"
else
conda_install mkl=2022.1.0 mkl-include=2022.1.0
fi

popd
}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
python-version: '3.11'
submodules: 'true'
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 90
script: |
set -eux

Expand Down
Loading