-
Notifications
You must be signed in to change notification settings - Fork 49
61 lines (59 loc) · 1.82 KB
/
python.yml
File metadata and controls
61 lines (59 loc) · 1.82 KB
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
name: Python Build
# This workflow is triggered on pushes or pull request to the repository.
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'ci/**'
- 'cpp/**'
- 'python/**'
- '.github/workflows/python.yml'
- '!**.md'
- '!ci/jenkins/**'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'ci/**'
- 'cpp/**'
- 'python/**'
- '.github/workflows/python.yml'
- '!**.md'
- '!ci/jenkins/**'
jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }}
runs-on: ubuntu-latest
# if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
ubuntu: [18.04]
env:
UBUNTU: ${{ matrix.ubuntu }}
steps:
# This step checks out a copy of your repository.
- name: Checkout Arctern
uses: actions/checkout@v1
- name: Docker Pull
shell: bash
run: |
docker-compose pull --ignore-pull-failures ubuntu-cpp
docker-compose pull --ignore-pull-failures ubuntu-python
- name: Docker Build
shell: bash
run: |
docker-compose build ubuntu-cpp
docker rmi $(docker images | grep '<none>' | awk '{print $3}') || true
docker-compose build ubuntu-python
docker rmi $(docker images | grep '<none>' | awk '{print $3}') || true
- name: Docker Run
run: |
docker-compose run ubuntu-python
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'zilliztech/arctern'
continue-on-error: true
shell: bash
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push ubuntu-python