Skip to content

Commit

Permalink
GITHUB_ENV cant be accessed until next step
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlaughlin committed Apr 5, 2024
1 parent fa2eb0b commit adc2636
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit adc2636

Please sign in to comment.