Skip to content

Commit

Permalink
add isolation flag
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Aug 14, 2023
1 parent 2c48989 commit e00333a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/build-src/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -19,6 +23,7 @@ runs:
run: |
echo ${{ inputs.build-tests }}
echo ${{ inputs.build-docs }}
echo ${{ inputs.isolation }}
- name: check_setup
shell: bash -l {0}
Expand All @@ -34,13 +39,19 @@ 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
- name: build_mda_tests
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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
with:
build-tests: true
build-docs: false
isolation: ${{ matrix.numpy != '' }}

- name: check_deps
run: |
Expand Down

0 comments on commit e00333a

Please sign in to comment.