Skip to content

[CI] Use OCI buildcache #662

[CI] Use OCI buildcache

[CI] Use OCI buildcache #662

Workflow file for this run

name: CI
on:
push:
branches: "main"
tags: ["*"]
pull_request:
release:
env:
RFM_CONFIG_FILES: "${{ github.workspace }}/benchmarks/reframe_config.py"
jobs:
test:
name: Tests on ${{ matrix.os }} - Spack ${{ matrix.spack_version }} - Spack spec ${{ matrix.spack_spec }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
spack_version:
# # In README.md we claim compatibility with v0.18.0
# - v0.18.0
- develop
spack_spec:
# `example` is a package in our custom Spack repo, ensure we can build
# packages in it.
- sombrero@2021-08-16
# - example@2021-08-16
# Compatible ReFrame versions are set in pyproject.toml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10.6'
cache: 'pip'
- name: Install Excalibur-tests
shell: bash
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Install Spack
shell: bash
working-directory: ${{runner.workspace}}
run: |
git clone --depth=1 https://github.com/spack/spack.git
cd spack
git checkout ${{ matrix.spack_version }}
echo "PATH=${PWD}/bin:${PATH}" >> "${GITHUB_ENV}"
# Make sure `spack` command works
- name: Spack version number
shell: bash
run: spack --version
# Make sure `reframe` command works
- name: ReFrame version number
shell: bash
run: reframe -V
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
- name: Run sample benchmark
shell: bash
run: |
reframe -v -c benchmarks/examples/sombrero --run --performance-report --system github-actions:default -S'spack_spec=${{ matrix.spack_spec }}'
find -name 'rfm_build.out' -print -exec cat '{}' \;
# - name: Post-processing tests
# shell: bash
# run: |
# pytest