Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .github/workflows/test_repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
- x86_64
EESSI_OS:
- linux
python:
- 3.12
exclude:
- EESSI_VERSION: '2023.06'
EESSI_ARCH: riscv64
Expand Down Expand Up @@ -67,19 +65,5 @@ jobs:
echo '>> ${EPREFIX}/startprefix <<< "which bash; qlist -IRv; exit"'
${EPREFIX}/startprefix <<< "which bash; qlist -IRv; exit"

- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{matrix.python}}
architecture: x64

- name: Install ReFrame
run: |
pip install reframe-hpc requests

- name: Run ReFrame test suite
run: |
export EESSI_ARCH=${{matrix.EESSI_ARCH}}
export EESSI_OS=${{matrix.EESSI_OS}}
export EESSI_VERSION=${{matrix.EESSI_VERSION}}
reframe -r -v -c ./test/compat_layer.py
run: ./test_compatibility_layer.sh --arch ${{matrix.EESSI_ARCH}} --os ${{matrix.EESSI_OS}} --version ${{matrix.EESSI_VERSION}} --verbose
11 changes: 3 additions & 8 deletions test_compatibility_layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,9 @@ fi
if ! command -v "reframe" &> /dev/null; then
REFRAME_TMPDIR=$(mktemp -t -d eessi.XXXXXXXXXX)
[[ ${VERBOSE} == '-vvv' ]] && echo "ReFrame command not found, trying to install it to a temporary directory ${REFRAME_TMPDIR}..."
if command -v "pip3" &> /dev/null; then
pip3 install --ignore-installed -t ${REFRAME_TMPDIR} reframe-hpc &> /dev/null
export PYTHONPATH=${REFRAME_TMPDIR}
export PATH="${REFRAME_TMPDIR}/bin/:${PATH}"
else
echo "Neither Reframe nor pip3 is available, please install ReFrame manually and add it to your \$PATH."
exit 1
fi
${COMPAT_LAYER_PREFIX}/usr/bin/python3 -m venv ${REFRAME_TMPDIR}
source ${REFRAME_TMPDIR}/bin/activate
pip3 install reframe-hpc &> /dev/null
fi

[[ ${VERBOSE} == '-vvv' ]] && echo "Trying to run 'reframe --version' as sanity check..."
Expand Down
Loading