10
10
- ' *'
11
11
12
12
env :
13
- CACHE_NUMBER : 0 # increase to reset cache manually
13
+ CACHE_NUMBER : 2 # increase to reset cache manually
14
14
15
15
jobs :
16
16
foundation :
@@ -24,10 +24,10 @@ jobs:
24
24
name : linux-64-py${{ matrix.python-version }}
25
25
runs-on : ubuntu-latest
26
26
steps :
27
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
28
28
29
29
- name : Setup Mambaforge
30
- uses : conda-incubator/setup-miniconda@v2
30
+ uses : conda-incubator/setup-miniconda@v3
31
31
with :
32
32
miniforge-variant : Mambaforge
33
33
miniforge-version : latest
38
38
- name : Set cache date for year and month
39
39
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
40
40
41
- - uses : actions/cache@v3
41
+ - uses : actions/cache@v4
42
42
with :
43
43
path : /usr/share/miniconda3/envs/asim-test
44
44
key : linux-64-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
47
47
- name : Update environment
48
48
run : |
49
49
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
50
- mamba install --yes \
51
- "psutil=5.9.5" \
52
- "pydantic=2.6.1" \
53
- "pypyr=5.8.0" \
54
- "pytables=3.6.1" \
55
- "pytest-cov" \
56
- "pytest-regressions=2.5.0" \
57
- "scikit-learn=1.2.2" \
58
- "sharrow>=2.6.0" \
59
- "simwrapper=1.8.5" \
60
- "xarray=2023.2.0" \
61
- "zarr=2.14.2" \
62
- "zstandard=0.21.0"
63
50
if : steps.cache.outputs.cache-hit != 'true'
64
51
65
52
- name : Install activitysim
@@ -109,12 +96,10 @@ jobs:
109
96
include :
110
97
- os : macos-latest
111
98
label : macOS
112
- prefix : /Users/runner/miniconda3/envs/asim-test
113
99
python-version : " 3.10"
114
100
115
101
- os : windows-latest
116
102
label : win-64
117
- prefix : C:\Miniconda3\envs\asim-test
118
103
python-version : " 3.10"
119
104
120
105
defaults :
@@ -124,10 +109,10 @@ jobs:
124
109
name : ${{ matrix.label }}
125
110
runs-on : ${{ matrix.os }}
126
111
steps :
127
- - uses : actions/checkout@v3
112
+ - uses : actions/checkout@v4
128
113
129
114
- name : Setup Mambaforge
130
- uses : conda-incubator/setup-miniconda@v2
115
+ uses : conda-incubator/setup-miniconda@v3
131
116
with :
132
117
miniforge-variant : Mambaforge
133
118
miniforge-version : latest
@@ -138,28 +123,15 @@ jobs:
138
123
- name : Set cache date for year and month
139
124
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
140
125
141
- - uses : actions/cache@v3
126
+ - uses : actions/cache@v4
142
127
with :
143
- path : ${{ matrix.prefix }}
128
+ path : ${{ env.CONDA }}/envs
144
129
key : ${{ matrix.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
145
130
id : cache
146
131
147
132
- name : Update environment
148
133
run : |
149
134
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
150
- mamba install --yes \
151
- "psutil=5.9.5" \
152
- "pydantic=2.6.1" \
153
- "pypyr=5.8.0" \
154
- "pytables=3.6.1" \
155
- "pytest-cov" \
156
- "pytest-regressions=2.5.0" \
157
- "scikit-learn=1.2.2" \
158
- "sharrow>=2.6.0" \
159
- "simwrapper=1.8.5" \
160
- "xarray=2023.2.0" \
161
- "zarr=2.14.2" \
162
- "zstandard=0.21.0"
163
135
if : steps.cache.outputs.cache-hit != 'true'
164
136
165
137
- name : Install activitysim
@@ -199,7 +171,6 @@ jobs:
199
171
builtin_regional_models :
200
172
needs : foundation
201
173
env :
202
- mamba-env-prefix : /usr/share/miniconda3/envs/asim-test
203
174
python-version : " 3.10"
204
175
label : linux-64
205
176
strategy :
@@ -221,10 +192,10 @@ jobs:
221
192
name : ${{ matrix.region }}
222
193
runs-on : ubuntu-latest
223
194
steps :
224
- - uses : actions/checkout@v3
195
+ - uses : actions/checkout@v4
225
196
226
197
- name : Setup Mambaforge
227
- uses : conda-incubator/setup-miniconda@v2
198
+ uses : conda-incubator/setup-miniconda@v3
228
199
with :
229
200
miniforge-variant : Mambaforge
230
201
miniforge-version : latest
@@ -235,28 +206,15 @@ jobs:
235
206
- name : Set cache date for year and month
236
207
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
237
208
238
- - uses : actions/cache@v3
209
+ - uses : actions/cache@v4
239
210
with :
240
- path : ${{ env.mamba-env-prefix }}
211
+ path : ${{ env.CONDA }}/envs
241
212
key : ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
242
213
id : cache
243
214
244
215
- name : Update environment
245
216
run : |
246
217
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
247
- mamba install --yes \
248
- "psutil=5.9.5" \
249
- "pydantic=2.6.1" \
250
- "pypyr=5.8.0" \
251
- "pytables=3.6.1" \
252
- "pytest-cov" \
253
- "pytest-regressions=2.5.0" \
254
- "scikit-learn=1.2.2" \
255
- "sharrow>=2.6.0" \
256
- "simwrapper=1.8.5" \
257
- "xarray=2023.2.0" \
258
- "zarr=2.14.2" \
259
- "zstandard=0.21.0"
260
218
if : steps.cache.outputs.cache-hit != 'true'
261
219
262
220
- name : Install activitysim
@@ -301,25 +259,31 @@ jobs:
301
259
external_regional_models :
302
260
needs : foundation
303
261
env :
304
- mamba-env-prefix : /usr/share/miniconda3/envs/asim-test
305
262
python-version : " 3.10"
306
263
label : linux-64
307
264
strategy :
308
265
matrix :
309
- region :
310
- - prototype_mtc
311
- - prototype_psrc_in_development
266
+ include :
267
+ - region : Standard 1-Zone Example (MTC)
268
+ region-org : ActivitySim
269
+ region-repo : activitysim-prototype-mtc
270
+ region-branch : extended
271
+ - region : Standard 2-Zone Example (SANDAG)
272
+ region-org : ActivitySim
273
+ region-repo : sandag-abm3-example
274
+ region-branch : main
312
275
fail-fast : false
313
276
defaults :
314
277
run :
315
278
shell : bash -l {0}
316
279
name : ${{ matrix.region }}
317
280
runs-on : ubuntu-latest
318
281
steps :
319
- - uses : actions/checkout@v3
282
+ - name : Checkout ActivitySim
283
+ uses : actions/checkout@v4
320
284
321
285
- name : Setup Mambaforge
322
- uses : conda-incubator/setup-miniconda@v2
286
+ uses : conda-incubator/setup-miniconda@v3
323
287
with :
324
288
miniforge-variant : Mambaforge
325
289
miniforge-version : latest
@@ -330,52 +294,46 @@ jobs:
330
294
- name : Set cache date for year and month
331
295
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
332
296
333
- - uses : actions/cache@v3
297
+ - uses : actions/cache@v4
334
298
with :
335
299
path : |
336
- ${{ env.mamba-env-prefix }}
300
+ ${{ env.CONDA }}/envs
337
301
~/.cache/ActivitySim
338
302
key : ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
339
303
id : cache
340
304
341
305
- name : Update environment
342
306
run : |
343
307
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
344
- mamba install --yes \
345
- "psutil=5.9.5" \
346
- "pydantic=2.6.1" \
347
- "pypyr=5.8.0" \
348
- "pytables=3.6.1" \
349
- "pytest-cov" \
350
- "pytest-regressions=2.5.0" \
351
- "scikit-learn=1.2.2" \
352
- "sharrow>=2.6.0" \
353
- "simwrapper=1.8.5" \
354
- "xarray=2023.2.0" \
355
- "zarr=2.14.2" \
356
- "zstandard=0.21.0"
357
308
if : steps.cache.outputs.cache-hit != 'true'
358
309
359
310
- name : Install activitysim
360
311
# installing without dependencies is faster, we trust that all needed dependencies
361
312
# are in the conda environment defined above. Also, this avoids pip getting
362
313
# confused and reinstalling tables (pytables).
363
314
run : |
364
- python -m pip install -e . --no-deps
315
+ python -m pip install . --no-deps
365
316
366
317
- name : Conda checkup
367
318
run : |
368
319
mamba info -a
369
320
mamba list
370
321
322
+ - name : Checkout Example
323
+ uses : actions/checkout@v4
324
+ with :
325
+ repository : ' ${{ matrix.region-org }}/${{ matrix.region-repo }}'
326
+ ref : ' ${{ matrix.region-branch }}'
327
+ path : ' ${{ matrix.region-repo }}'
328
+
371
329
- name : Test ${{ matrix.region }}
372
330
run : |
373
- python -m activitysim test ${{ matrix.region }}
331
+ cd ${{ matrix.region-repo }}/test
332
+ python -m pytest .
374
333
375
334
random_seed_generation :
376
335
needs : foundation
377
336
env :
378
- mamba-env-prefix : /usr/share/miniconda3/envs/asim-test
379
337
python-version : " 3.10"
380
338
label : linux-64
381
339
defaults :
@@ -385,10 +343,10 @@ jobs:
385
343
runs-on : ubuntu-latest
386
344
387
345
steps :
388
- - uses : actions/checkout@v3
346
+ - uses : actions/checkout@v4
389
347
390
348
- name : Setup Mambaforge
391
- uses : conda-incubator/setup-miniconda@v2
349
+ uses : conda-incubator/setup-miniconda@v3
392
350
with :
393
351
miniforge-variant : Mambaforge
394
352
miniforge-version : latest
@@ -399,28 +357,15 @@ jobs:
399
357
- name : Set cache date for year and month
400
358
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
401
359
402
- - uses : actions/cache@v3
360
+ - uses : actions/cache@v4
403
361
with :
404
- path : ${{ env.mamba-env-prefix }}
362
+ path : ${{ env.CONDA }}/envs
405
363
key : ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
406
364
id : cache
407
365
408
366
- name : Update environment
409
367
run : |
410
368
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
411
- mamba install --yes \
412
- "psutil=5.9.5" \
413
- "pydantic=2.6.1" \
414
- "pypyr=5.8.0" \
415
- "pytables=3.6.1" \
416
- "pytest-cov" \
417
- "pytest-regressions=2.5.0" \
418
- "scikit-learn=1.2.2" \
419
- "sharrow>=2.6.0" \
420
- "simwrapper=1.8.5" \
421
- "xarray=2023.2.0" \
422
- "zarr=2.14.2" \
423
- "zstandard=0.21.0"
424
369
if : steps.cache.outputs.cache-hit != 'true'
425
370
426
371
- name : Install activitysim
@@ -442,7 +387,6 @@ jobs:
442
387
estimation_mode :
443
388
needs : foundation
444
389
env :
445
- mamba-env-prefix : /usr/share/miniconda3/envs/asim-test
446
390
python-version : " 3.10"
447
391
label : linux-64
448
392
defaults :
@@ -451,10 +395,10 @@ jobs:
451
395
name : estimation_mode_test
452
396
runs-on : ubuntu-latest
453
397
steps :
454
- - uses : actions/checkout@v3
398
+ - uses : actions/checkout@v4
455
399
456
400
- name : Setup Mambaforge
457
- uses : conda-incubator/setup-miniconda@v2
401
+ uses : conda-incubator/setup-miniconda@v3
458
402
with :
459
403
miniforge-variant : Mambaforge
460
404
miniforge-version : latest
@@ -465,28 +409,15 @@ jobs:
465
409
- name : Set cache date for year and month
466
410
run : echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
467
411
468
- - uses : actions/cache@v3
412
+ - uses : actions/cache@v4
469
413
with :
470
- path : ${{ env.mamba-env-prefix }}
414
+ path : ${{ env.CONDA }}/envs
471
415
key : ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
472
416
id : cache
473
417
474
418
- name : Update environment
475
419
run : |
476
420
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
477
- mamba install --yes \
478
- "psutil=5.9.5" \
479
- "pydantic=2.6.1" \
480
- "pypyr=5.8.0" \
481
- "pytables=3.6.1" \
482
- "pytest-cov" \
483
- "pytest-regressions=2.5.0" \
484
- "scikit-learn=1.2.2" \
485
- "sharrow>=2.6.0" \
486
- "simwrapper=1.8.5" \
487
- "xarray=2023.2.0" \
488
- "zarr=2.14.2" \
489
- "zstandard=0.21.0"
490
421
if : steps.cache.outputs.cache-hit != 'true'
491
422
492
423
- name : Install Larch
@@ -517,15 +448,15 @@ jobs:
517
448
run :
518
449
shell : bash -l {0}
519
450
steps :
520
- - uses : actions/checkout@v3
451
+ - uses : actions/checkout@v4
521
452
with :
522
453
fetch-depth : 0 # get all tags, lets setuptools_scm do its thing
523
454
- name : Set up Python 3.10
524
455
uses : actions/setup-python@v2
525
456
with :
526
457
python-version : " 3.10"
527
458
- name : Install dependencies
528
- uses : conda-incubator/setup-miniconda@v2
459
+ uses : conda-incubator/setup-miniconda@v3
529
460
with :
530
461
miniforge-variant : Mambaforge
531
462
miniforge-version : latest
0 commit comments