Fix formatting and release workflow (#2549) #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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: arc-runner-set | |
python-version: '3.8' | |
secrets: inherit | |
mlstacks-compatibility-check: | |
needs: setup-and-test | |
runs-on: arc-runner-set | |
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 uv | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
source $HOME/.cargo/env | |
- name: Create virtual environment | |
run: uv venv | |
- name: Check mlstacks compatibility | |
run: | | |
source .venv/bin/activate | |
uv pip install -e . | |
uv pip install mlstacks | |
- name: Check for broken dependencies | |
run: | | |
source .venv/bin/activate | |
uv pip check | |
mysql-db-migration-testing: | |
runs-on: arc-runner-set | |
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: arc-runner-set | |
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: arc-runner-set | |
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: arc-runner-set | |
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 |