Skip to content

test dev/oneapi-headers pr (#42) #275

test dev/oneapi-headers pr (#42)

test dev/oneapi-headers pr (#42) #275

Workflow file for this run

# SPDX-FileCopyrightText: 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
on:
push:
branches:
- main
pull_request:
env:
SPACK_REPO: rscohn2/spack
SPACK_BRANCH: dev/oneapi-headers
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: [icc, 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/linux/bin/intel64
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/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