-
Notifications
You must be signed in to change notification settings - Fork 22
49 lines (42 loc) · 1.44 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
docker build -t ${{secrets.DOCKER_USERNAME}}/aleburrello - < Dockerfile
docker push ${{secrets.DOCKER_USERNAME}}/aleburrello
tests:
runs-on: ubuntu-22.04
needs: []
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CI_TOKEN }}
submodules: recursive
- name: Run experiments in docker image
uses: addnab/docker-run-action@v3
with:
image: alessioburrello/aleburrello:latest
options: -v ${{ github.workspace }}:/dory_checkout --workdir /dory_checkout
shell: bash
run: |
source docker_utils/docker_pulp_sdk.sh
python3 -m pytest --durations=0 -x test_PULP.py --compat "pulp-sdk" --appdir "/dory_app"
retcode=$?
if [ ! $retcode -eq 0 ]; then exit $retcode; fi
echo $retcode
source docker_utils/docker_gap_sdk.sh
python3 -m pytest --durations=0 -x test_PULP.py --compat "gap-sdk" --appdir "/dory_app"
retcode=$?
if [ ! $retcode -eq 0 ]; then exit $retcode; fi
echo $retcode