-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 2.06 KB
/
integration.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
name: Integration Test
on: [push , pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.6
id: python_setup
uses: actions/setup-python@v1
with:
python-version: "3.6"
- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@master
with:
submodules: 'recursive'
- name: Docker Login
id: docker_login
uses: Azure/docker-login@v1
with:
username: ${{ secrets.DOCKERUSERNAME }}
password: ${{ secrets.DOCKERPASSWORD }}
login-server: https://index.docker.io/v1/
- name: Build Docker images
id: docker_build
uses: docker/build-push-action@v1.1.0
with:
# Docker repository to tag the image with
repository: mlspec/mlspeclib-action-samples-process-data
username: ${{ secrets.DOCKERUSERNAME }}
password: ${{ secrets.DOCKERPASSWORD }}
tag_with_ref: True
tag_with_sha: True
push: False
# - name: Debugging with tmate
# id: tmate_debugging
# env:
# INPUT_METASTORE_CREDENTIALS: ${{ secrets.METASTORE_CREDENTIALS }}
# uses: mxschmitt/action-tmate@v2
- name: Test Image
id: test_image_e2e
env:
INPUT_METASTORE_CREDENTIALS: '${{ secrets.METASTORE_CREDENTIALS }}'
run: |
python3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install pipenv
python3 -m pipenv install -r requirements.txt
python3 -m pipenv run python3 -m unittest integration/test_e2e_integration.py
- name: Push Docker images
id: push_docker_images
uses: docker/build-push-action@v1.1.0
with:
# Docker repository to tag the image with
repository: mlspec/mlspeclib-action-samples-process-data
username: ${{ secrets.DOCKERUSERNAME }}
password: ${{ secrets.DOCKERPASSWORD }}
tag_with_ref: True
tag_with_sha: True
push: True