11
11
- " branch-*"
12
12
- " main"
13
13
jobs :
14
+ pre-commit :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-python@v5
19
+ -
uses :
pre-commit/[email protected]
20
+
14
21
build-test :
22
+ needs : [pre-commit]
15
23
defaults :
16
24
run :
17
25
shell : bash -el {0}
@@ -23,14 +31,25 @@ jobs:
23
31
env :
24
32
NVIDIA_VISIBLE_DEVICES : ${{ env.NVIDIA_VISIBLE_DEVICES }} # GPU jobs must set this container env variable
25
33
steps :
26
- - name : Install legate/cunumeric
27
- run : |
28
- mamba install -y -c legate -c conda-forge legate-core=24.06 cunumeric=24.06 build cmake scikit-build scikit-learn hypothesis 'pytest<8' notebook 'numpy<2' mypy openblas
29
- pip install matplotlib seaborn xgboost
30
34
- name : Checkout legateboost
31
35
uses : actions/checkout@v4
32
36
with :
33
37
lfs : true
38
+ - name : Install legate/cunumeric
39
+ run : |
40
+ mamba install --yes -c rapidsai \
41
+ 'rapids-dependency-file-generator>=1.14.0'
42
+
43
+ rapids-dependency-file-generator \
44
+ --output conda \
45
+ --file-key all \
46
+ --matrix "cuda=${CUDA_VERSION};arch=$(arch)" | tee /tmp/env.yaml
47
+
48
+ # update the current environment (instead of creating a new one), as that
49
+ # persists across all steps
50
+ mamba env update \
51
+ --name base \
52
+ --file /tmp/env.yaml
34
53
- name : Type check legateboost
35
54
run : |
36
55
mypy ./legateboost --config-file ./setup.cfg --exclude=legateboost/test --exclude=install_info
52
71
- name : Build legateboost docs
53
72
working-directory : docs
54
73
run : |
55
- pip install sphinx pydata-sphinx-theme myst-parser
56
74
# invoke sphinx build using legate
57
75
legate --run-mode=python --module sphinx.cmd.build source build -b html
58
76
- uses : actions/upload-pages-artifact@v1
81
99
- name : Deploy to GitHub Pages
82
100
id : deployment
83
101
uses : actions/deploy-pages@v2
84
-
85
- pre-commit :
86
- runs-on : ubuntu-latest
87
- steps :
88
- - uses : actions/checkout@v4
89
- - uses : actions/setup-python@v5
90
- -
uses :
pre-commit/[email protected]
0 commit comments