From bdf5325d8993cc7d72ab98c3b8b3fa56923a22c5 Mon Sep 17 00:00:00 2001 From: Iain Russell Date: Fri, 19 Apr 2024 16:06:17 +0100 Subject: [PATCH] ECC-1793: develop binary wheel - fix check-and-publish workflow --- .github/workflows/check-and-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-and-publish.yml b/.github/workflows/check-and-publish.yml index 983ece3..df43832 100644 --- a/.github/workflows/check-and-publish.yml +++ b/.github/workflows/check-and-publish.yml @@ -74,17 +74,19 @@ jobs: - run: pip install -r tests/requirements.txt - run: pip freeze - run: env | sort - - run: python -m eccodes selfcheck + - run: ECCODES_PYTHON_USE_INSTALLED_BINARIES=1 python -m eccodes selfcheck - run: pytest if: matrix.method == 'conda' && matrix.platform == 'windows-latest' env: ECCODES_DEFINITION_PATH: 'C:/Miniconda/Library/share/eccodes/definitions' ECCODES_SAMPLES_PATH: 'C:/Miniconda/Library/share/eccodes/samples' + ECCODES_PYTHON_USE_INSTALLED_BINARIES: '1' - run: pytest if: matrix.method != 'conda' || matrix.platform != 'windows-latest' - + env: + ECCODES_PYTHON_USE_INSTALLED_BINARIES: '1' # pytest -v --cov=. --cov-report=xml --cov-branch . - name: Upload coverage to Codecov