diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cef2da4..c62a8e35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,8 @@ jobs: auto-update-conda: true channels: conda-forge channel-priority: strict + miniforge-variant: Mambaforge + use-mamba: true - name: Print Conda info shell: bash -l {0} run: | diff --git a/.github/workflows/test.sh b/.github/workflows/test.sh index 05a59ffe..6dbd1c0e 100755 --- a/.github/workflows/test.sh +++ b/.github/workflows/test.sh @@ -2,7 +2,7 @@ eval "$(conda shell.bash hook)" -# Create and activate conda environment for this test +# Create and activate mamba environment for this test BINDING=$(echo "$1" | tr '[:lower:]' '[:upper:]') QT_VERSION_VAR=${BINDING}_QT_VERSION @@ -12,17 +12,17 @@ if [ "${!QT_VERSION_VAR:0:3}" = "5.9" ]; then PYTEST_VERSION=">=6,!=7.0.0,!=7.0.1,<7.2.0" fi -conda create -q -n test-env-${BINDING} python=${PYTHON_VERSION} pytest${PYTEST_VERSION:-">=6,!=7.0.0,!=7.0.1"} "pytest-cov>=3.0.0" pytest-qt${PYTESTQT_VERSION:-} +mamba create -q -n test-env-${BINDING} python=${PYTHON_VERSION} pytest${PYTEST_VERSION:-">=6,!=7.0.0,!=7.0.1"} "pytest-cov>=3.0.0" pytest-qt${PYTESTQT_VERSION:-} conda activate test-env-${BINDING} if [ "$USE_CONDA" = "Yes" ]; then if [ "${1}" = "pyqt5" ]; then - conda install -q qt=${PYQT5_QT_VERSION} pyqt=${PYQT5_VERSION} + mamba install -q qt=${PYQT5_QT_VERSION} pyqt=${PYQT5_VERSION} elif [ "${1}" = "pyside2" ]; then - conda install -q qt=${PYSIDE2_QT_VERSION} pyside2=${PYSIDE2_VERSION} + mamba install -q qt=${PYSIDE2_QT_VERSION} pyside2=${PYSIDE2_VERSION} elif [ "${1}" = "pyside6" ]; then - conda install -q qt6-main=${PYSIDE6_QT_VERSION} pyside6=${PYSIDE6_VERSION} + mamba install -q qt6-main=${PYSIDE6_QT_VERSION} pyside6=${PYSIDE6_VERSION} else exit 1 fi @@ -56,7 +56,7 @@ python -bb -X dev -W error -m build echo dist/*.whl | xargs -I % python -bb -X dev -W error -W "ignore::DeprecationWarning:pip._internal.locations._distutils" -W "ignore::DeprecationWarning:distutils.command.install" -m pip install --upgrade % # Print environment information -conda list +mamba list # Run tests mkdir -p temp_test_dir