File tree Expand file tree Collapse file tree 7 files changed +282
-5
lines changed Expand file tree Collapse file tree 7 files changed +282
-5
lines changed Original file line number Diff line number Diff line change 42
42
- uses : actions/checkout@v4
43
43
- uses : mamba-org/setup-micromamba@v1
44
44
with :
45
- environment-file : ./environment.yml
45
+ environment-file : ./environment.lock
46
46
environment-name : sagemaker-distribution
47
47
init-shell : bash
48
48
- name : Free up disk space
Original file line number Diff line number Diff line change 41
41
- uses : actions/checkout@v4
42
42
- uses : mamba-org/setup-micromamba@v1
43
43
with :
44
- environment-file : ./environment.yml
44
+ environment-file : ./environment.lock
45
45
environment-name : sagemaker-distribution
46
46
init-shell : bash
47
47
- name : Free up disk space
Original file line number Diff line number Diff line change 31
31
- uses : actions/checkout@v4
32
32
- uses : mamba-org/setup-micromamba@v1
33
33
with :
34
- environment-file : ./environment.yml
34
+ environment-file : ./environment.lock
35
35
environment-name : sagemaker-distribution
36
36
init-shell : bash
37
37
- name : Free up disk space
Original file line number Diff line number Diff line change
1
+ name : Update environment.lock
2
+ # Update environment.lock weekly, so we can quickly install environment without having
3
+ # to solve environment.yml every time.
4
+ on :
5
+ # Every Monday
6
+ schedule :
7
+ - cron : ' 0 0 * * MON'
8
+ # Manually call
9
+ workflow_dispatch :
10
+ defaults :
11
+ run :
12
+ shell : bash -l {0}
13
+ jobs :
14
+ update-environment :
15
+ name : Install environment.yml, generate environment.lock
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ - uses : mamba-org/setup-micromamba@v1
22
+ with :
23
+ environment-file : ./environment.yml
24
+ environment-name : sagemaker-distribution
25
+ init-shell : bash
26
+ - name : Create environment-lock.yml
27
+ run : micromamba env export --explicit > environment.lock
28
+ - name : Run sagemaker-distribution unit tests to check for regressions
29
+ run : pytest -m unit
30
+ - name : Commit changes
31
+ run : |
32
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
33
+ git config --local user.name "github-actions[bot]"
34
+ git add environment.lock
35
+ git commit -m 'Update environment.lock'
36
+ git push
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Follow these steps for sending out a pull request for adding new packages:
61
61
```
62
62
This project uses Conda to manage its dependencies. Run the following to setup your local environment:
63
63
64
- conda env update --file environment.yml -n sagemaker-distribution
64
+ conda env update --file environment.lock -n sagemaker-distribution
65
65
66
66
conda activate sagemaker-distribution
67
67
Original file line number Diff line number Diff line change 3
3
This project uses Conda to manage its dependencies. Run the following to setup your local environment:
4
4
5
5
``` shell
6
- conda env update --file environment.yml -n sagemaker-distribution
6
+ conda env update --file environment.lock -n sagemaker-distribution
7
7
```
8
8
9
9
## Tests
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments