Skip to content
Open
13 changes: 11 additions & 2 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
python-version: [3.8]
#platform: [ubuntu-18.04, macos-latest]
platform: [ubuntu-24.04]
platform: [ubuntu-24.04, macos-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.platform }}

steps:
Expand All @@ -26,10 +26,19 @@ jobs:
# if: runner.os == 'macOS'

- name: HACK! remove default conda
run: sudo unlink /usr/bin/conda
run: |
set +e # allow this step to fail for differing architectures/missing condas
sudo unlink /usr/bin/conda
set -e # reset

- name: Install IC
run: |

case "$(uname -m)" in
x86_64) source $CONDA/etc/profile.d/conda.sh ;;
aarch64) echo "CONDA=/home/runner/miniconda" >> "$GITHUB_ENV" ;;
arm64) echo "CONDA=/Users/runner/miniconda" >> "$GITHUB_ENV" ;;
esac
source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }}

- name: Run tests
Expand Down
17 changes: 16 additions & 1 deletion manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,26 @@ function install_conda {
;;
esac

# Setting architecture based on input
ARCH=$(uname -m)

case $ARCH in

x86_64) : ;;
arm64) : ;;
aarch64) : ;;
*)
echo "Installation only supported on x86_64 and arm architectures"
exit 1
;;
esac


if conda --version ; then
echo Conda already installed. Skipping conda installation.
else
echo Installing conda for $CONDA_OS
CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_23.11.0-2-${CONDA_OS}-x86_64.sh"
CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_23.11.0-2-${CONDA_OS}-${ARCH}.sh"
if which wget; then
wget ${CONDA_URL} -O miniconda.sh
else
Expand Down
Loading