forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.64 KB
/
dev-setup.yml
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
name: Dev environment setup
on:
push:
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: ""
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
jobs:
linux-env-setup:
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.event_name != 'schedule' || github.repository == 'mlflow-automation/mlflow'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
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 "[email protected]"
- name: Run Environment tests
run: |
TERM=xterm bash ./dev/test-dev-env-setup.sh