-
-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (38 loc) · 1.09 KB
/
regressiontest_container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Regression Test in Container
on:
pull_request:
branches: [devel]
paths:
- 'buildtest/**'
- 'tests/**'
- '.github/workflows/regressiontest_container.yml'
- 'requirements.txt'
- 'pyproject.toml'
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@v4
- 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
source setup.sh
python $BUILDTEST_ROOT/buildtest/tools/unittests.py -c --pytest="-m spack"
returncode=$?
if [ $returncode != 0 ]; then exit $returncode; fi
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}