-
Notifications
You must be signed in to change notification settings - Fork 12
80 lines (74 loc) · 2.51 KB
/
ci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI Test
on:
pull_request:
push: { branches: [master] }
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dockerbase: ["centos7", "rockylinux8", "ubuntu2004"]
packagemanager: ["pip"]
mpi: ["openmpi", "mpich"]
pyversion: ["3.7", "3.8", "3.9"]
env:
DOCKER_TAG: "${{ matrix.dockerbase }}_${{ matrix.packagemanager }}_${{ matrix.mpi }}_${{ matrix.pyversion }}"
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Build docker images (${{ env.DOCKER_TAG }})
run: |
docker build \
-t exaworks/sdk-base:${{ env.DOCKER_TAG }} \
--cache-from exaworks/sdk-base:${{ env.DOCKER_TAG }} \
-f docker/base/${{ matrix.dockerbase }}/Dockerfile \
--build-arg PACKAGE_MANAGER=${{ matrix.packagemanager }} \
--build-arg PYTHON_VERSION=${{ matrix.pyversion }} \
--build-arg MPI=${{ matrix.mpi }} \
docker/base/
docker build \
-t rct:${{ env.DOCKER_TAG }} \
--build-arg BASE_IMAGE=exaworks/sdk-base:${{ env.DOCKER_TAG }} \
docker/rct
docker build \
-t rct_parsl:${{ env.DOCKER_TAG }} \
--build-arg BASE_IMAGE=rct:${{ env.DOCKER_TAG }} \
docker/parsl
docker build \
-t rct_parsl_swift:${{ env.DOCKER_TAG }} \
--build-arg BASE_IMAGE=rct_parsl:${{ env.DOCKER_TAG }} \
docker/swift-t
docker build \
-t rct_parsl_swift_flux:${{ env.DOCKER_TAG }} \
--build-arg BASE_IMAGE=rct_parsl_swift:${{ env.DOCKER_TAG }} \
docker/flux
docker build \
-t exaworks_sdk:${{ env.DOCKER_TAG }} \
--build-arg BASE_IMAGE=rct_parsl_swift_flux:${{ env.DOCKER_TAG }} \
docker/integration
- name: Run tests (${{ env.DOCKER_TAG }})
run: |
total=0
export tag=${{ env.DOCKER_TAG }}
for core in flux parsl rp re swift parsl-flux rp-flux
do
docker run \
exaworks_sdk:${{ env.DOCKER_TAG }} \
bash --login -c /tests/$core/test.sh
ret=$?
echo "$core : $ret"
total=$(($total + $ret))
done
exit $total
check-pr:
name: validate commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- run: git fetch origin master
- uses: exaworks/pr-validator@master