Files
mlflow--mlflow/.github/workflows/dev-setup.yml
T
2026-07-13 13:22:34 +08:00

67 lines
1.9 KiB
YAML

name: Dev environment setup
on:
push:
branches:
- master
- branch-[0-9]+.[0-9]+
paths:
- "dev/dev-env-setup.sh"
- "dev/test-dev-env-setup.sh"
- ".github/workflows/dev-setup.yml"
pull_request:
paths:
- "dev/dev-env-setup.sh"
- "dev/test-dev-env-setup.sh"
- ".github/workflows/dev-setup.yml"
schedule:
- cron: "42 7 * * 0"
workflow_dispatch:
inputs:
repository:
description: >
[Optional] Repository name with owner. For example, mlflow/mlflow.
Defaults to the repository that triggered a workflow.
required: false
default: ""
ref:
description: >
[Optional] The branch, tag or SHA to checkout. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that event. Otherwise,
uses the default branch.
required: false
default: ""
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions: {}
jobs:
linux-env-setup:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
if: github.event_name != 'schedule' || github.repository == 'mlflow/dev'
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: ./.github/actions/free-disk-space
with:
repository: ${{ github.event_name == 'schedule' && 'mlflow/mlflow' || github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
- name: Setup environment
run: |
git config --global user.name "test"
git config --global user.email "test@mlflow.org"
- name: Run Environment tests
run: |
TERM=xterm bash ./dev/test-dev-env-setup.sh