Skip to content

Commit 7249f9b

Browse files
committed
the conditional did not work
1 parent cbc668e commit 7249f9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-pkg-install.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ jobs:
6161
if: ${{ matrix.pkg-name == 'lightning' }}
6262
run: python -m lightning --version
6363

64+
- name: Ignore import mismatch on Python 3.7
65+
if: ${{ matrix.python-version == '3.7' }}
66+
run: export PY_IGNORE_IMPORTMISMATCH=1
67+
6468
- name: DocTest package
65-
env:
66-
PY_IGNORE_IMPORTMISMATCH: ${{ matrix.python-version == '3.7' }}
6769
run: |
6870
PKG_NAME=$(python -c "print({'app': 'lightning_app', 'lite': 'lightning_lite', 'pytorch': 'pytorch_lightning', 'lightning': 'lightning'}['${{matrix.pkg-name}}'])")
6971
python -m pytest src/${PKG_NAME} --ignore-glob="**/cli/*-template/**"

0 commit comments

Comments
 (0)