feat: [TMX-1460] add function mlflow_decision_to_promote #137
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
--- | |
name: hipages Checks | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize, edited] | |
push: | |
branches: | |
- master | |
jobs: | |
jira-title: | |
name: JIRA Title Check 🎪 | |
if: github.ref_name != 'master' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Regex Check on PR Title | |
uses: morrisoncole/pr-lint-action@v1.7.0 | |
with: | |
title-regex: ^.*:.*\[[A-Z]{2,5}-\d+\]* | |
on-failed-regex-fail-action: false | |
on-failed-regex-request-changes: false | |
on-failed-regex-create-review: true | |
on-failed-regex-comment: Valid JIRA ticket title is required ie. [ABC-123] | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
pre-commit: | |
name: Pre-Commit Check 🚧 | |
if: github.ref_name != 'master' | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
cache: pip | |
cache-dependency-path: '**/requirements*.txt' | |
- name: Cache pip dependencies | |
uses: actions/cache@v2 | |
continue-on-error: true | |
id: pip-cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- uses: pre-commit/action@v3.0.0 |