Skip to content

2024 updates (#43) #278

2024 updates (#43)

2024 updates (#43) #278

Workflow file for this run

# SPDX-FileCopyrightText: 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
on:
push:
branches:
- main
pull_request:
env:
SPACK_REPO: spack/spack
SPACK_BRANCH: develop
jobs:
checks:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install prerequisites
run: |
python -m pip install --quiet --upgrade pip
pip install --quiet -r requirements.txt
- name: Checks
run: |
pre-commit run --all
gcc:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
part: [gcc_1, gcc_2, virtual, ilp64]
name: ${{ matrix.part }}
steps:
- name: CPUtype
run: lscpu
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install prerequisites
run: |
python -m pip install --quiet --upgrade pip
pip install --quiet -r requirements.txt
- name: Install spack
uses: actions/checkout@v3
with:
repository: ${{ env.SPACK_REPO }}
path: spack
ref: ${{ env.SPACK_BRANCH }}
- name: Package tests
run: |
source spack/share/spack/setup-env.sh
spack repo add ./repo
pytest -s tests/test_packages.py::test_${{ matrix.part }}
- name: Load test
run: |
source spack/share/spack/setup-env.sh
pytest -s tests/test_packages.py::test_load
- uses: actions/upload-artifact@v3
if: failure()
with:
name: gcc-${{ matrix.part }}-${{ matrix.os }}-logs
path: |
/tmp/runner/spack-stage/
/tmp/runner/intel-oneapi-installer/
!/tmp/runner/**/*.sh
bootstrapper*
installer*
retention-days: 7
intel-compiler:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
compiler: [icx]
part: [1, 2, 3]
os: [ubuntu-20.04]
name: ${{ matrix.compiler }}_${{ matrix.part }}
steps:
- name: CPUtype
run: lscpu
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install prerequisites
run: |
python -m pip install --quiet --upgrade pip
pip install --quiet -r requirements.txt
- name: Install spack
uses: actions/checkout@v3
with:
repository: ${{ env.SPACK_REPO }}
path: spack
ref: ${{ env.SPACK_BRANCH }}
- name: Package tests
run: |
source spack/share/spack/setup-env.sh
spack repo add ./repo
spack install intel-oneapi-compilers
spack clean --downloads
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/bin
pytest -s tests/test_packages.py::test_${{ matrix.compiler }}_${{ matrix.part }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ matrix.compiler }}-${{ matrix.part }}-${{ matrix.os }}-logs
path: |
/tmp/runner/spack-stage/
/tmp/runner/intel-oneapi-installer/
!/tmp/runner/**/*.sh
bootstrapper*
installer*
retention-days: 7