-
Notifications
You must be signed in to change notification settings - Fork 1
195 lines (178 loc) · 5.9 KB
/
build-env.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
190
191
192
193
194
195
name: tests environments
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
# build-ubuntu:
#
# name: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash -l {0}
# continue-on-error: ${{ matrix.experimental }}
# strategy:
# max-parallel: 12
# fail-fast: false
# matrix:
# python-version: ["3.11"]
# os: ["ubuntu-latest"]
# experimental: [false]
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Set environment variables
# run: |
# echo "CONDA_ENV_FILE=practice/environment/coiled/environment-coiled-pinned-binder.yml" >> $GITHUB_ENV
# echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
# echo "LOG_FILE=Py${{matrix.python-version}}-${{matrix.os}}.log" >> $GITHUB_ENV
#
# - name: Setup Micromamba ${{ matrix.python-version }}
# uses: mamba-org/setup-micromamba@v2
# with:
# micromamba-version: '1.5.10-0'
# environment-name: ds2-tests
# environment-file: ${{ env.CONDA_ENV_FILE }}
# init-shell: bash
# cache-environment: true
# cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
# create-args: >-
# python=${{matrix.python-version}}
#
# - name: Version info
# run: |
# micromamba info
# micromamba list > $LOG_FILE
#
# - name: Save tests log as artifact
# uses: actions/upload-artifact@v4
# with:
# name: Build-${{matrix.python-version}}-${{matrix.os}}
# path: ${{env.LOG_FILE}}
# retention-days: 90
#
# build-macos:
#
# name: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# defaults:
# run:
# shell: bash -l {0}
# continue-on-error: ${{ matrix.experimental }}
# strategy:
# max-parallel: 12
# fail-fast: false
# matrix:
# python-version: ["3.11"]
# os: ["macos-latest"]
# experimental: [false]
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Set environment variables
# run: |
# echo "CONDA_ENV_FILE=practice/environment/coiled/environment-coiled-pinned-binder.yml" >> $GITHUB_ENV
# echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
# echo "LOG_FILE=Py${{matrix.python-version}}-${{matrix.os}}.log" >> $GITHUB_ENV
#
# - name: Setup Micromamba ${{ matrix.python-version }}
# uses: mamba-org/setup-micromamba@v2
# with:
# micromamba-version: '1.5.10-0'
# environment-name: ds2-tests
# environment-file: ${{ env.CONDA_ENV_FILE }}
# init-shell: bash
# cache-environment: true
# cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
# create-args: >-
# python=${{matrix.python-version}}
#
# - name: Version info
# run: |
# micromamba info
# micromamba list > $LOG_FILE
#
# - name: Save tests log as artifact
# uses: actions/upload-artifact@v4
# with:
# name: Build-${{matrix.python-version}}-${{matrix.os}}
# path: ${{env.LOG_FILE}}
# retention-days: 90
build-windows:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
continue-on-error: ${{ matrix.experimental }}
strategy:
max-parallel: 12
fail-fast: false
matrix:
python-version: ["3.11"]
os: ["windows-latest"]
experimental: [false]
steps:
- uses: actions/checkout@v4
- name: Set environment variables
run: |
echo "CONDA_ENV_FILE=practice/environment/coiled/environment-coiled-pinned-binder-windows.yml" >> $GITHUB_ENV
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
echo "LOG_FILE=Py${{matrix.python-version}}-${{matrix.os}}.log" >> $GITHUB_ENV
- name: Download Google SDK
shell: cmd
run: |
curl.exe -o gcloud-sdk.zip --url https://storage.googleapis.com/cloud-sdk-release/google-cloud-cli-502.0.0-windows-x86_64.zip
tar -xf gcloud-sdk.zip
- name: Help Google SDK
shell: cmd
run: |
.\google-cloud-sdk\install.bat --help
- name: Install Google SDK 1
shell: cmd
run: |
.\google-cloud-sdk\install.bat --quiet --path-update true
- name: Install Google SDK 2
shell: cmd
run: |
setx PATH "%PATH%;D:\a\ds2-2025\ds2-2025\google-cloud-sdk\bin"
echo PATH
- name: Check Google SDK 1
shell: cmd
run: |
D:\a\ds2-2025\ds2-2025\google-cloud-sdk\bin\gcloud info
- name: Check Google SDK 2
shell: cmd
run: |
gcloud info
- name: Setup Micromamba ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.5.10-0'
environment-name: ds2-tests
environment-file: ${{ env.CONDA_ENV_FILE }}
init-shell: bash
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
- name: Version info
run: |
micromamba info
micromamba list > $LOG_FILE
- name: Save tests log as artifact
uses: actions/upload-artifact@v4
with:
name: Build-${{matrix.python-version}}-${{matrix.os}}
path: ${{env.LOG_FILE}}
retention-days: 90