Skip to content

Commit

Permalink
[CI] Use PIP_OPTIONS in build tests
Browse files Browse the repository at this point in the history
Use PIP_OPTIONS in the build tests in CI to pass the '--verbose' flag.
As an example of how multiple pip options can be passed as a single string
to PIP_OPTIONS, show in one test that '--force-reinstall' and '--prefix'
options can be used.
  • Loading branch information
matthewfeickert committed Mar 14, 2022
1 parent 6745d09 commit 71a0491
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DPYTHON_EXECUTABLE=$(command -v python3) \
-DENABLE_TESTS=ON \
-DPIP_VERBOSE=ON \
-DPIP_OPTIONS="--verbose" \
-S xrootd \
-B build
cmake3 build -LH
Expand Down Expand Up @@ -128,6 +128,8 @@ jobs:
- name: Clone repository now that Git is available
uses: actions/checkout@v1

# Use extra PIP_OPTIONS strings as example that this is possible.
# N.B.: None of the PIP_OPTIONS are required for this step to work.
- name: Build with cmake
run: |
. /opt/rh/devtoolset-7/enable
Expand All @@ -136,7 +138,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DPYTHON_EXECUTABLE=$(command -v python3) \
-DENABLE_TESTS=ON \
-DPIP_VERBOSE=ON \
-DPIP_OPTIONS="--verbose --force-reinstall --prefix /usr/local/" \
-S xrootd \
-B build
cmake3 build -LH
Expand Down Expand Up @@ -204,7 +206,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DPYTHON_EXECUTABLE=$(command -v python2) \
-DENABLE_TESTS=ON \
-DPIP_VERBOSE=ON \
-DPIP_OPTIONS="--verbose" \
-S xrootd \
-B build
cmake3 build -LH
Expand Down Expand Up @@ -264,7 +266,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DPYTHON_EXECUTABLE=$(command -v python3) \
-DENABLE_TESTS=ON \
-DPIP_VERBOSE=ON \
-DPIP_OPTIONS="--verbose" \
-S xrootd \
-B build
cmake build -LH
Expand Down

0 comments on commit 71a0491

Please sign in to comment.