Repository navigation
67 lines (62 loc) · 1.93 KB
/
Copy pathdev-setup.yml
File metadata and controls
67 lines (62 loc) · 1.93 KB
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
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: "0 2 * * 0"
timezone: "Asia/Tokyo"
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: {}
cache-mode: none
jobs:
linux-env-setup:
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
if: github.event_name != 'schedule' || github.repository == 'mlflow/mlflow'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: ${{ github.event_name == 'schedule' && 'mlflow/mlflow' || github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
- uses: ./.github/actions/free-disk-space
- 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