-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (25 loc) · 1.01 KB
/
python-package.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
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DASK_SERVER_IP: 52.190.25.183
BLOB_ACCOUNT_NAME: ${{ secrets.BLOB_ACCOUNT_NAME }}
BLOB_ACCOUNT_KEY: ${{ secrets.BLOB_ACCOUNT_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: docker build -f kubernetes/Dockerfile -t navjotk/daks_test:latest .
- name: Push to docker hub
run: |
docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}"
docker push navjotk/daks_test:latest
- name: Test with pytest
run: docker run -e DASK_SERVER_IP=$DASK_SERVER_IP -e BLOB_ACCOUNT_NAME=$BLOB_ACCOUNT_NAME -e BLOB_ACCOUNT_KEY=$BLOB_ACCOUNT_KEY navjotk/daks_test:latest py.test -svx tests/
- name: Run scripts
run: docker run -e DASK_SERVER_IP=$DASK_SERVER_IP -e BLOB_ACCOUNT_NAME=$BLOB_ACCOUNT_NAME -e BLOB_ACCOUNT_KEY=$BLOB_ACCOUNT_KEY navjotk/daks_test:latest make fwi