diff --git a/.github/actions/build-src/action.yaml b/.github/actions/build-src/action.yaml index d8e0c33b8c3..f3eb58c5071 100644 --- a/.github/actions/build-src/action.yaml +++ b/.github/actions/build-src/action.yaml @@ -9,6 +9,10 @@ inputs: description: 'build MDA docs' required: true default: false + isolation: + descriptions: 'use build isolation for pip installs' + required: true + default: false runs: @@ -19,6 +23,7 @@ runs: run: | echo ${{ inputs.build-tests }} echo ${{ inputs.build-docs }} + echo ${{ inputs.isolation }} - name: check_setup shell: bash -l {0} @@ -34,6 +39,9 @@ runs: - name: build_mda_main shell: bash -l {0} run: | + if [ ${{ input.isolation }} == 'true' ]; then + $BUILD_FLAGS="--no-build-isolation" + fi # install instead of develop would reduce coverage (for .pyx files) python -m pip install --no-build-isolation -v -e ./package @@ -41,6 +49,9 @@ runs: if: ${{ inputs.build-tests == 'true' }} shell: bash -l {0} run: | + if [ ${{ input.isolation }} == 'true' ]; then + $BUILD_FLAGS="--no-build-isolation" + fi python -m pip install --no-build-isolation -v -e ./testsuite - name: build_docs diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index d3138688e88..96a81a9246a 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -88,6 +88,7 @@ jobs: with: build-tests: true build-docs: false + isolation: ${{ matrix.numpy != '' }} - name: check_deps run: |