Skip to content

Show content of generated test, build script and output and error in 'buildtest build' #188

Show content of generated test, build script and output and error in 'buildtest build'

Show content of generated test, build script and output and error in 'buildtest build' #188

name: Regression Test with Spack Support
on:
pull_request:
branches: [devel]
paths:
- 'buildtest/**'
- 'tests/**'
- '.github/workflows/spack_regression_test.yml'
- 'requirements.txt'
- 'pyproject.toml'
jobs:
buildtest_regtest_with_spack:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5.0.0
- name: Set up Spack
uses: spack/setup-spack@v2
- name: Spack Regression Test
shell: spack-bash {0}
run: |
spack --version
whoami
spack find
source setup.sh
pip install pytest coverage
python $BUILDTEST_ROOT/buildtest/tools/unittests.py -c -p "-m spack"
returncode=$?
if [ $returncode != 0 ]; then exit $returncode; fi
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true