Skip to content

Commit

Permalink
Merge pull request EESSI#146 from boegel/ci_software.eessi.io
Browse files Browse the repository at this point in the history
use software.eessi.io repo in CI
  • Loading branch information
casparvl authored May 23, 2024
2 parents 887ef13 + 387bd80 commit edf1885
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Tests for EESSI test suite, using EESSI pilot repo
name: Tests for EESSI test suite, using EESSI production repo
on: [push, pull_request, workflow_dispatch]
permissions: read-all
jobs:
Expand All @@ -9,39 +9,23 @@ jobs:
fail-fast: false
matrix:
EESSI_VERSION:
- "2021.12"
- '2023.06'
steps:
- name: Check out software-layer repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false

- name: Mount EESSI CernVM-FS pilot repository
uses: cvmfs-contrib/github-action-cvmfs@55899ca74cf78ab874bdf47f5a804e47c198743c # v4.0
- name: Mount EESSI CernVM-FS production repository
uses: eessi/github-action-eessi@e1f8f20638ea417a18d23ab29443ee34794ff900 # v3.1.0
with:
cvmfs_config_package: https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi_latest_all.deb
cvmfs_http_proxy: DIRECT
cvmfs_repositories: pilot.eessi-hpc.org
eessi_stack_version: ${{matrix.EESSI_VERSION}}

- name: Run test suite
run: |
source /cvmfs/pilot.eessi-hpc.org/versions/${{matrix.EESSI_VERSION}}/init/bash
source /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/init/bash
# install latest version of EasyBuild, to install ReFrame with it,
# since that includes the ReFrame test library (hpctestlib) that we rely on
python3 -m venv venv
source venv/bin/activate
pip3 install easybuild
eb --version
export EASYBUILD_PREFIX=$HOME/easybuild
# need to force module generation with --module-only --force because 'pip check' fails
# in EESSI pilot 2021.12, see https://github.com/EESSI/compatibility-layer/issues/152
eb ReFrame-4.3.3.eb || eb ReFrame-4.3.3.eb --module-only --force
# load ReFrame
module use $HOME/easybuild/modules/all
module load ReFrame/4.3.3
module load ReFrame
reframe --version
# configure ReFrame (cfr. https://reframe-hpc.readthedocs.io/en/stable/manpage.html#environment)
Expand Down

0 comments on commit edf1885

Please sign in to comment.