From 0ed7fe72dc921698f08a970fa866227d73d57b31 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:14:27 +0530 Subject: [PATCH] Reorder environment variables to reduce repetition --- .github/workflows/tests.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e289f823..8ce08929 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,15 @@ name: Test env: + # Coloured output for GitHub Actions FORCE_COLOR: 3 + # Some common environment variables, required for both GNU/Linux and macOS jobs + MPLBACKEND: Agg + CYTHON_TRACE: 1 + CYTHONSPEC: cython + NUMPY_MIN: numpy==1.22.4 + CYTHON_MIN: cython==0.29.35 + SCIPY_MIN: scipy==1.8.0 # TODO: undo these when PR is ready on: @@ -20,14 +28,6 @@ jobs: test_pywavelets_linux: name: linux-cp${{ matrix.python-version }}-${{ matrix.OPTIONS_NAME }} runs-on: ubuntu-latest - env: - MPLBACKEND: Agg - CYTHON_TRACE: 1 - CYTHONSPEC: cython - NUMPY_MIN: numpy==1.22.4 - CYTHON_MIN: cython==0.29.35 - SCIPY_MIN: scipy==1.8.0 - strategy: # Ensure that a wheel builder finishes even if another fails fail-fast: false @@ -144,14 +144,6 @@ jobs: test_pywavelets_macos: name: macos-cp${{ matrix.python-version }}-${{ matrix.OPTIONS_NAME }} runs-on: macos-latest - env: - MPLBACKEND: Agg - CYTHON_TRACE: 1 - CYTHONSPEC: cython - NUMPY_MIN: numpy==1.22.4 - CYTHON_MIN: cython==0.29.35 - SCIPY_MIN: scipy==1.8.0 - strategy: # Ensure that a wheel builder finishes even if another fails fail-fast: false