Switch to Lmod initialisation by default, and add capability to only mount the repositories #512
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ubuntu-minimal_usage | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs once a day at midnight UTC | |
| workflow_dispatch: # Allows manual triggering | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| minimal_usage: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04-arm | |
| - ubuntu-24.04 | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./ | |
| - name: Test EESSI | |
| run: | | |
| direnv status | |
| module avail | |
| shell: bash | |
| - name: Test available repos | |
| run: | | |
| ls /cvmfs/software.eessi.io | |
| ls /cvmfs/dev.eessi.io | |
| shell: bash | |
| test_mount_only: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./ | |
| with: | |
| mount_cvmfs_only: 'true' | |
| init_direnv: 'false' | |
| - name: Test EESSI not initialised | |
| run: | | |
| if [[ -v EESSI_VERSION ]]; then | |
| echo "EESSI_VERSION should not be set as this indicates EESSI is initialised" | |
| exit 1 | |
| fi | |
| # Make sure CVMFS is mounted, and EESSI available | |
| ls /cvmfs/software.eessi.io | |
| shell: bash |