-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.4 KB
/
containers.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: containers
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
schedule:
- cron: '44 4 * * 0'
jobs:
shmem_matrix:
strategy:
fail-fast: false
matrix:
shmem: [sos_ubuntu, sos_fedora, oshmem_ubuntu, oshmem_fedora, oshmpi_ubuntu, oshmpi_fedora, osss_ubuntu, osss_fedora]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: jpribyl/[email protected]
with:
key: ${{ matrix.shmem }}-5-{hash}
restore-keys: |
${{ matrix.shmem }}-5-
- name: Build Docker container
run: docker build -t local docker/${{ matrix.shmem }}/
- name: run shmem4py test-1
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-1 opt=-v"
- name: run shmem4py test-2
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-2 opt=-v"
- name: run shmem4py demo-test-1
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-1 opt=-v"
- name: run shmem4py demo-test-2
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-2 opt=-v"
- name: clean docker cache
run: docker image prune --all --force --filter "until=168h"