From adc2636e2de751e3f8aaa8eb8c6ea2256f247e9f Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Fri, 5 Apr 2024 13:31:12 -0700 Subject: [PATCH] GITHUB_ENV cant be accessed until next step --- .github/workflows/build-and-test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e762d0e4..de6722d9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -34,11 +34,11 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Set PYTHONPATH + - name: Create PYTHONLIB and set PYTHONPATH run: | - echo "PYTHONLIB=$HOME/sandbox/lib/python${{ matrix.python-version }}/site-packages" >> $GITHUB_ENV - mkdir -p ${{ env.PYTHONLIB }} - echo "PYTHONPATH=${{ env.PYTHONLIB }}:$PYTHONPATH" >> $GITHUB_ENV + PYTHONLIB=${HOME}/sandbox/lib/python${{ matrix.python-version }}/site-packages + mkdir -p $PYTHONLIB + echo "PYTHONPATH=$PYTHONLIB:$PYTHONPATH" >> $GITHUB_ENV - name: Set PATH run: | @@ -75,7 +75,6 @@ jobs: sudo apt-get install libmpich-dev; pip install mpi4py --prefix=$HOME/sandbox python -c "import mpi4py;print(mpi4py.get_include())"; - ls -l $PYTHONLIB - if: ${{ matrix.parallel != 'true' }} name: Build serial