test icpx 2024.2 #280
This file contains 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
# SPDX-FileCopyrightText: 2019-2020 Intel Corporation | |
# | |
# SPDX-License-Identifier: MIT | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
SPACK_REPO: rscohn2/spack | |
SPACK_BRANCH: dev/icpx-nopatch | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
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 |