Skip to content

Commit

Permalink
Merge pull request #1635 from buildtesters/regtest_container
Browse files Browse the repository at this point in the history
adding regression test workflow in container
  • Loading branch information
shahzebsiddiqui authored Jun 28, 2024
2 parents f16442e + 085b28b commit 9d12235
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/regressiontest_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Regression Test in Container

on:
pull_request:
branches: [ devel ]

Check failure on line 5 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

5:16 [brackets] too many spaces inside brackets

Check failure on line 5 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

5:22 [brackets] too many spaces inside brackets

jobs:
buildtest_tutorial_container:
runs-on: ubuntu-latest
container:
image: ghcr.io/buildtesters/buildtest_spack:spack-sc23
options: "-it --user root"
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: regression test in container
shell: bash
run: |
set +xe
. /etc/profile
which csh zsh
module load python
python3 -m venv env
source env/bin/activate
export HOMEDIR=`pwd`
export BUILDTEST_CONFIGFILE=$HOMEDIR/buildtest/settings/spack_container.yml

Check warning on line 27 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

27:81 [line-length] line too long (85 > 80 characters)
source $HOMEDIR/setup.sh
python $HOMEDIR/buildtest/tools/unittests.py -c
returncode=$?
if [ $returncode != 0 ]; then exit $returncode; fi
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30

Check failure on line 36 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

36:28 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 9d12235

Please sign in to comment.