Skip to content

Commit 6af0784

Browse files
committed
fix so poetry finds esmf
1 parent df6f8a1 commit 6af0784

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/pylint.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ jobs:
8484
8585
- name: Install Poetry
8686
run: |
87-
python -m pip install --upgrade pip
88-
python -m pip install pipx
87+
python -m pip install --upgrade pip pipx
8988
pipx install poetry
9089
poetry --version
9190
9291
- name: Enable in-project venv for better caching
93-
run: poetry config virtualenvs.in-project true
92+
run: poetry config virtualenvs.create false
9493

9594
- name: Cache virtualenv
9695
uses: actions/cache@v4
@@ -104,9 +103,8 @@ jobs:
104103
- name: Install deps (incl. dev)
105104
run: poetry install --no-interaction --no-ansi
106105

107-
# If your tests need environment variables, set them here (example):
108-
# - name: Set test env
109-
# run: echo "CMIP7_PREP_TEST=1" >> $GITHUB_ENV
110-
111106
- name: Run pytest
107+
env:
108+
ESMFMKFILE: ${{ env.ESMFMKFILE }}
109+
LD_LIBRARY_PATH: ${{ env.ESMF_INSTALL_PREFIX }}/lib:${{ env.LD_LIBRARY_PATH }}
112110
run: poetry run pytest -q

0 commit comments

Comments
 (0)