-
Notifications
You must be signed in to change notification settings - Fork 732
189 lines (167 loc) · 5.64 KB
/
nano-nightly-test.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: Nano Nightly Test
# Controls when the action will run.
on:
schedule:
- cron: '00 13 * * *' # GMT time, 13:00 GMT == 21:00 China
pull_request:
branches: [ main ]
paths:
- '.github/actions/nano/setup-pytorch-env/action.yml'
- '.github/actions/nano/pytorch-test/action.yml'
- '.github/actions/nano/remove-pytorch-env/action.yml'
- '.github/actions/nano/setup-tensorflow-env/action.yml'
- '.github/actions/nano/tensorflow-test/action.yml'
- '.github/actions/nano/remove-tensorflow-env/action.yml'
- '.github/workflows/nano-nightly-test.yml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
env:
GIST_ID: bc8a699b455bced4a1aef138ad5df07e
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Nano-PyTorch-UT-Test-Ubuntu:
runs-on: ["ubuntu-20.04"]
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano PyTorch Env
uses: ./.github/actions/nano/setup-pytorch-env
with:
python-version: ${{ matrix.python-version }}
os: "ubuntu"
- name: Run Nano PyTorch Test
uses: ./.github/actions/nano/pytorch-test
with:
os: "ubuntu"
# - name: Remove Nano PyTorch Env
# uses: ./.github/actions/nano/remove-pytorch-env
- name: Create Job Badge
uses: ./.github/actions/create-job-status-badge
if: ${{ always() }}
with:
secret: ${{ secrets.GIST_SECRET}}
gist-id: ${{env.GIST_ID}}
is-self-hosted-runner: false
file-name: Nano-PyTorch-UT-Test.json
type: job
job-name: Nano-PyTorch-UT-Test
runner-hosted-on: 'Shanghai'
Nano-Tensorflow-UT-Test-Ubuntu:
runs-on: [ "ubuntu-20.04" ]
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano Tensorflow Env
uses: ./.github/actions/nano/setup-tensorflow-env
with:
python-version: ${{ matrix.python-version }}
os: "ubuntu"
- name: Run Nano Tensorflow Test
uses: ./.github/actions/nano/tensorflow-test
with:
os: "ubuntu"
# - name: Remove Nano Tensorflow Env
# uses: ./.github/actions/nano/remove-tensorflow-env
- name: Create Job Badge
uses: ./.github/actions/create-job-status-badge
if: ${{ always() }}
with:
secret: ${{ secrets.GIST_SECRET}}
gist-id: ${{env.GIST_ID}}
is-self-hosted-runner: false
file-name: Nano-Tensorflow-UT-Test.json
type: job
job-name: Nano-Tensorflow-UT-Test
runner-hosted-on: 'Shanghai'
Nano-PyTorch-UT-Test-Windows:
runs-on: [ "windows-latest" ]
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano PyTorch Env
uses: ./.github/actions/nano/setup-pytorch-env
with:
python-version: ${{ matrix.python-version }}
os: "windows"
- name: Run Nano PyTorch Test
uses: ./.github/actions/nano/pytorch-test
with:
os: "windows"
Nano-TensorFlow-UT-Test-Windows:
runs-on: [ "windows-latest" ]
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano Tensorflow Env
uses: ./.github/actions/nano/setup-tensorflow-env
with:
python-version: ${{ matrix.python-version }}
os: "windows"
- name: Run Nano Tensorflow Test
uses: ./.github/actions/nano/tensorflow-test
with:
os: "windows"
Nano-PyTorch-UT-Test-CentOS:
runs-on: [ "Gondolin-centos" ]
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano PyTorch Env
uses: ./.github/actions/nano/setup-pytorch-env
with:
python-version: ${{ matrix.python-version }}
os: "centos"
- name: Run Nano PyTorch Test
uses: ./.github/actions/nano/pytorch-test
with:
os: "centos"
- name: Remove Nano PyTorch Conda Env
uses: ./.github/actions/nano/remove-pytorch-env
Nano-TensorFlow-UT-Test-CentOS:
runs-on: [ "Gondolin-centos" ]
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: Set up Nano Tensorflow Env
uses: ./.github/actions/nano/setup-tensorflow-env
with:
python-version: ${{ matrix.python-version }}
os: "centos"
- name: Run Nano Tensorflow Test
uses: ./.github/actions/nano/tensorflow-test
with:
os: "centos"
- name: Remove Nano Tensorflow Conda Env
uses: ./.github/actions/nano/remove-tensorflow-env
create-workflow-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
- name: create workflow badge
if: ${{ always() }}
uses: ./.github/actions/create-job-status-badge
with:
secret: ${{ secrets.GIST_SECRET }}
gist-id: ${{env.GIST_ID}}
file-name: nano-nightly-test.json
type: workflow