Skip to content

Commit 53d31ed

Browse files
committed
use contains
1 parent 5fa6e6b commit 53d31ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/python-package-conda.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ jobs:
2828
- os: macOS-latest
2929
python-major-version: 3
3030
python-minor-version: 8
31+
env:
32+
PYTHON_VERSION: ${{ matrix.python-major-version }}.${{matrix.python-minor-version}}
3133

3234
steps:
3335
- uses: actions/checkout@v4
3436
- name: Setup Conda
3537
uses: conda-incubator/setup-miniconda@v3
3638
with:
3739
auto-update-conda: true
38-
python-version: ${{matrix.python-major-version }}.{{matrix.python-minor-version}
40+
python-version: env.PYTHON_VERSION
3941
- name: Install Base Env
4042
run: |
4143
conda info
@@ -45,7 +47,7 @@ jobs:
4547
4648
- name: Install MKL solver interface
4749
# Don't run this on the osx-arm images.
48-
if: ${{ runner.os == 'macOS'}} and ${{ 'ARM' in runner.arch}}
50+
if: not(${{ runner.os == 'macOS'}} and contains('ARM', runner.arch, 'ARM'))
4951
run:
5052
conda install --quiet --yes -c conda-forge pydiso
5153

0 commit comments

Comments
 (0)