Skip to content

Commit

Permalink
CI: use mamba for Linux and OSX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed May 12, 2023
1 parent 3b30fe9 commit 7a2679a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]
numpy-version: ["1.21"]
pyqt-version: ["5.12"]
include:
- host-os: "ubuntu-latest"
conda-mamba: "mamba"
- host-os: "macos-latest"
conda-mamba: "mamba"
- host-os: "windows-latest"
conda-mamba: "conda"
fail-fast: false

runs-on: ${{ matrix.host-os }}
Expand Down Expand Up @@ -46,7 +53,6 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
mamba-version: "*"
channel-priority: flexible
auto-update-conda: true
show-channel-urls: true
Expand Down Expand Up @@ -77,9 +83,9 @@ jobs:
run: |
set -vxeo pipefail
# conda install mamba -n base -c conda-forge
conda install mamba -n base -c conda-forge
mamba install -y \
${{ matrix.conda-mamba }} install -y \
python=${{ matrix.python-version }} \
numpy=${{ matrix.numpy-version }} \
pyqt=${{ matrix.pyqt-version }} \
Expand All @@ -97,7 +103,7 @@ jobs:
set -vxeo pipefail
# There are issues in building wheels for pystackreg>0.2.2 on OSX, so install pystackreg from CF
conda install -y pystackreg -c conda-forge
${{ matrix.conda-mamba }} install -y pystackreg -c conda-forge
conda list
pip list
Expand All @@ -106,7 +112,7 @@ jobs:
run: |
set -vxeuo pipefail
conda install -y pystackreg -c conda-forge # Some issue with pystackreg from PyPI
${{ matrix.conda-mamba }} install -y pystackreg -c conda-forge # Some issue with pystackreg from PyPI
# pip install --upgrade pip setuptools
pip install codecov
Expand Down

0 comments on commit 7a2679a

Please sign in to comment.