Skip to content

xtf-runner: Refactor get_all_test_info() #20

xtf-runner: Refactor get_all_test_info()

xtf-runner: Refactor get_all_test_info() #20

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
python-tests:
name: "Python Tests"
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: pre-commit checks - setup cache
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: make -j $(nproc)
- name: pre-commit checks - run checks
uses: pre-commit/[email protected]
# Python2 pytest/pylint CI:
- run: sudo apt-get update && sudo apt-get install -y python2
- run: curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2 -
- run: pip2 install pytest pylint==1.9.4
- run: python2 -m pytest -v -rA
- run: python2 -m pylint xtf-runner build/*.py tests/python/*.py
build:
strategy:
matrix:
arch: [x86]
compiler: [llvm-12, llvm-13, llvm-14]
include:
- arch: x86
compiler: gcc-9
- arch: x86
compiler: gcc-10
- arch: x86
compiler: gcc-11
- arch: x86
compiler: gcc-12
- arch: x86
compiler: gcc-13
- arch: x86
compiler: clang-12
- arch: x86
compiler: clang-13
- arch: x86
compiler: clang-14
runs-on: ubuntu-22.04
steps:
- name: Install
run: |
c=${{matrix.compiler}}
v=${c##llvm-}
case $c in
# Need all {llvm,clang,lld}-$v packages
llvm-*) EXTRA="clang-${v} lld-${v}" ;;
esac
sudo apt-get update -q
sudo apt-get install -y build-essential python3 ${{matrix.compiler}} ${EXTRA}
- uses: actions/checkout@v3
- name: Build
run: |
# Select appropriate LLVM= or CC=
c=${{matrix.compiler}}
case $c in
llvm-*) COMP="LLVM=${c#llvm}" ;;
*) COMP="CC=$c" ;;
esac
make -j`nproc` ARCH=${{matrix.arch}} $CROSS $COMP