Skip to content

Commit

Permalink
use only test action env config
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov authored Oct 11, 2023
1 parent e7ca384 commit f85e329
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/update-templates-to-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,21 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Setup environment
uses: ./.github/actions/setup_environment
- name: Run template tests for zenml-io/template-e2e-batch
uses: zenml-io/template-e2e-batch/.github/actions/e2e_template_test@main
with:
cache_version: ${{ secrets.GH_ACTIONS_CACHE_KEY }}
python-version: ${{ inputs.python-version }}
os: ${{ inputs.os }}
stack-name: local
ref-zenml: ${{ github.ref }}
ref-template: '2023.10.10' # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from zenml/cli/base.py

- name: message-on-error
if: failure()
run: |
echo "::error title=zenml-io/template-e2e-batch project template testing failed with new version of ZenML core!::\
Breaking changes affecting templates have been introduced. To mitigate this issue,\
please make the code in zenml-io/template-e2e-batch compatible with new version of\
ZenML core, release it and update release tag in zenml.cli.base.ZENML_PROJECT_TEMPLATES"
- name: Check-out fresh E2E template
run: |
Expand Down Expand Up @@ -99,19 +108,3 @@ jobs:
repo: context.repo.repo,
body: 'E2E template updates in `examples/e2e` have been pushed.'
})
- name: Run template tests for zenml-io/template-e2e-batch
uses: zenml-io/template-e2e-batch/.github/actions/e2e_template_test@main
with:
python-version: ${{ inputs.python-version }}
stack-name: local
ref-zenml: ${{ github.ref }}
ref-template: '2023.10.10' # Make sure it is aligned with ZENML_PROJECT_TEMPLATES from zenml/cli/base.py

- name: message-on-error
if: failure()
run: |
echo "::error title=zenml-io/template-e2e-batch project template testing failed with new version of ZenML core!::\
Breaking changes affecting templates have been introduced. To mitigate this issue,\
please make the code in zenml-io/template-e2e-batch compatible with new version of\
ZenML core, release it and update release tag in zenml.cli.base.ZENML_PROJECT_TEMPLATES"

0 comments on commit f85e329

Please sign in to comment.