-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (56 loc) · 2.48 KB
/
test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build
on: [ push, pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_test_no_mpi_no_memcheck:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build Docker image
run: docker build -t tuv-x-test .
- name: run tests in container
run: docker run --name test-container -t tuv-x-test bash -c 'make test ARGS="--rerun-failed --output-on-failure"'
build_test_with_mpi_no_memcheck:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build Docker image for MPI tests
run: docker build -t tuv-x-mpi-test . -f Dockerfile.mpi
- name: run MPI tests in container
run: docker run -t tuv-x-mpi-test bash -c 'make test ARGS="--rerun-failed --output-on-failure"'
build_test_no_mpi_with_memcheck:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build Docker image
run: docker build -t tuv-x-test . -f Dockerfile.memcheck
- name: run tests in container
run: docker run --name test-container -t tuv-x-test bash -c 'make coverage ARGS="--rerun-failed --output-on-failure"'
- name: copy coverage from container
run: docker cp test-container:build/coverage.info .
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.info
build_test_with_mpi_with_memcheck:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: build Docker image for MPI tests
run: docker build -t tuv-x-mpi-test . -f Dockerfile.mpi.memcheck
- name: run MPI tests in container
run: docker run -t tuv-x-mpi-test bash -c 'make test ARGS="--rerun-failed --output-on-failure"'