Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Simplify sdist install jobs and logging #1691

Merged
merged 3 commits into from
May 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 29 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -154,6 +155,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -221,6 +223,7 @@ jobs:

- name: Verify Python bindings
run: |
python2 --version
python2 -m pip list
python2 -m pip show xrootd
python2 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -284,6 +287,7 @@ jobs:
export LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
export PYTHON_VERSION_MINOR=$(python3 -c 'import sys; print(f"{sys.version_info.minor}")')
export PYTHONPATH="/usr/local/lib/python3.${PYTHON_VERSION_MINOR}/site-packages:${PYTHONPATH}"
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -347,6 +351,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -414,6 +419,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand All @@ -422,7 +428,6 @@ jobs:

- name: Build sdist using publishing workflow
run: |
. /opt/rh/devtoolset-7/enable
cp packaging/wheel/* .
./publish.sh
ls -lhtra dist/
Expand Down Expand Up @@ -478,6 +483,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -542,6 +548,7 @@ jobs:

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand All @@ -559,6 +566,7 @@ jobs:
yum update -y
yum install --nogpg -y \
cmake3 \
gcc-c++ \
make \
krb5-devel \
libuuid-devel \
Expand All @@ -570,6 +578,7 @@ jobs:
python3-devel \
python3-setuptools \
git \
tree \
cppunit-devel
yum clean all
python3 -m pip --no-cache-dir install wheel
Expand All @@ -580,15 +589,20 @@ jobs:

- name: Build sdist using publishing workflow
run: |
. /opt/rh/devtoolset-7/enable
cp packaging/wheel/* .
./publish.sh
cd .. # Move xrootd.egg-info off PYTHONPATH
python3 -m pip --verbose install xrootd/dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list

- name: Show site-pacakges layout for XRootD modules
run: |
find $(python3 -c 'import XRootD; import pathlib; print(str(pathlib.Path(XRootD.__path__[0]).parent))') \
-type d \
-iname "*xrootd*" | xargs tree

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand All @@ -606,6 +620,7 @@ jobs:
yum update -y
yum install --nogpg -y \
cmake3 \
gcc-c++ \
make \
krb5-devel \
libuuid-devel \
Expand All @@ -617,6 +632,7 @@ jobs:
python3-devel \
python3-setuptools \
git \
tree \
cppunit-devel
yum clean all
python3 -m pip --no-cache-dir install --upgrade pip setuptools wheel
Expand All @@ -627,15 +643,20 @@ jobs:

- name: Build sdist using publishing workflow
run: |
. /opt/rh/devtoolset-7/enable
cp packaging/wheel/* .
./publish.sh
cd .. # Move xrootd.egg-info off PYTHONPATH
python3 -m pip --verbose install xrootd/dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list

- name: Show site-pacakges layout for XRootD modules
run: |
find $(python3 -c 'import XRootD; import pathlib; print(str(pathlib.Path(XRootD.__path__[0]).parent))') \
-type d \
-iname "*xrootd*" | xargs tree

- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
Expand Down Expand Up @@ -678,7 +699,7 @@ jobs:
run: |
cp packaging/wheel/* .
./publish.sh
python3 -m pip --verbose install ./dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list

- name: Show site-pacakges layout for XRootD modules
Expand Down