Skip to content

Commit b93eb7d

Browse files
committed
silence deprecation warning for using Python 2 in workflow to run tests with Python 2.7 in CentOS 7.9 container
1 parent a042318 commit b93eb7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/unit_tests_python2.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ jobs:
5858
python2 -m pip install --prefix $PREFIX dist/easybuild-framework*tar.gz
5959
6060
- name: run test suite
61-
env:
62-
EB_VERBOSE: 1
63-
EB_PYTHON: python2
6461
run: |
6562
# run tests *outside* of checked out easybuild-framework directory,
6663
# to ensure we're testing installed version (see previous step)
6764
cd $HOME
6865
# make sure 'eb' is available via $PATH, and that $PYTHONPATH is set (some tests expect that)
6966
export PREFIX=/tmp/$USER/$GITHUB_SHA
7067
ENV_CMDS="export PATH=$PREFIX/bin:$PATH; export PYTHONPATH=$PREFIX/lib/python2.7/site-packages:$PYTHONPATH"
68+
ENV_CMDS="${ENV_CMDS}; export EB_VERBOSE=1; export EB_PYTHON=python2; export TEST_EASYBUILD_SILENCE_DEPRECATION_WARNINGS=python2"
7169
# run EasyBuild command via (non-root) easybuild user + login shell
7270
sudo -u easybuild bash -l -c "${ENV_CMDS}; module --version; eb --version"
7371
# show active EasyBuild configuration

0 commit comments

Comments
 (0)