-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 1.08 KB
/
test-deploy.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
name: Monarch container + SDK deploy preparation tests
on:
pull_request:
branches:
- main
- monarch-sdk-deploy-pypi
- monarch-deploy-docker
jobs:
deploy-test:
runs-on: ubuntu-latest
env:
IMAGE_VERSION: latest # just for test
steps:
- uses: actions/checkout@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push
uses: docker/build-push-action@v3
with:
context: .
push: false
tags: pygrum/monarch:${{ env.IMAGE_VERSION }}
file: ./docker/builder/Dockerfile
- name: Install python package
uses: actions/setup-python@v4
continue-on-error: false
- name: upgrade pip packages
run: python3 -m pip install --user --upgrade setuptools wheel twine
- name: setup distribution
run: python3 python/setup.py sdist bdist_wheel