-
Notifications
You must be signed in to change notification settings - Fork 456
105 lines (105 loc) · 3.07 KB
/
release.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
# This is a basic workflow to help you get started with Actions
name: Release Package & Docker Image
# Controls when the action will run. Triggers the workflow on push of a tag
on:
push:
tags: ['*']
jobs:
setup-and-test:
uses: ./.github/workflows/unit-test.yml
with:
os: ubuntu-dind-runners
python-version: '3.8'
secrets: inherit
mlstacks-compatibility-check:
needs: setup-and-test
runs-on: ubuntu-dind-runners
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
- name: Set up Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.8'
- name: Install current package as editable
run: pip install -e .
- name: Install mlstacks package
run: pip install mlstacks
- name: Check for broken dependencies
run: pip check
mysql-db-migration-testing:
runs-on: ubuntu-dind-runners
env:
ZENML_ANALYTICS_OPT_IN: false
ZENML_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v5.0.0
with:
python-version: '3.9'
- name: Test migrations across versions
run: bash scripts/test-migrations-mysql.sh mysql
sqlite-db-migration-testing:
runs-on: ubuntu-dind-runners
env:
ZENML_ANALYTICS_OPT_IN: false
ZENML_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v5.0.0
with:
python-version: '3.9'
- name: Test migrations across versions
run: bash scripts/test-migrations-mysql.sh sqlite
mariadb-db-migration-testing:
runs-on: ubuntu-dind-runners
env:
ZENML_ANALYTICS_OPT_IN: false
ZENML_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4.8.0
with:
python-version: '3.9'
- name: Test migrations across versions
run: bash scripts/test-migrations-mariadb.sh
publish-python-package:
if: github.repository == 'zenml-io/zenml'
needs:
- setup-and-test
- mlstacks-compatibility-check
- sqlite-db-migration-testing
- mysql-db-migration-testing
- mariadb-db-migration-testing
uses: ./.github/workflows/publish_to_pypi.yml
secrets: inherit
wait-for-package-release:
runs-on: ubuntu-dind-runners
needs: publish-python-package
steps:
- name: Sleep for 4 minutes
run: sleep 240
shell: bash
publish-docker-image:
if: github.repository == 'zenml-io/zenml'
needs: wait-for-package-release
uses: ./.github/workflows/publish_docker_image.yml
secrets: inherit
publish-helm-chart:
if: github.repository == 'zenml-io/zenml'
needs: publish-docker-image
uses: ./.github/workflows/publish_helm_chart.yml
secrets: inherit