Skip to content

Commit 1fe2d4b

Browse files
committed
build profiling image in CI
1 parent ad1f068 commit 1fe2d4b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
!LightGBM/python-package
1414
!LightGBM/src
1515
!LightGBM/swig
16-
!LightGBM/windows
1716
!LightGBM/VERSION.txt

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Build cluster image
3232
run: |
3333
make cluster-image
34+
- name: Build profiling image
35+
run: |
36+
make profiling-image
3437
all-tests-successful:
3538
if: always()
3639
runs-on: ubuntu-latest

Dockerfile-profiling

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ ARG BASE_IMAGE=unset
33
# hadolint ignore=DL3006
44
FROM ${BASE_IMAGE}
55

6-
RUN pip install --no-cache-dir --prefer-binary \
7-
memray \
8-
pytest \
9-
pytest-memray \
10-
pytest-profiling \
11-
snakeviz
6+
RUN <<<EOF
7+
pip install --no-cache-dir --prefer-binary \
8+
memray \
9+
pytest \
10+
pytest-memray \
11+
pytest-profiling \
12+
snakeviz
13+
EOF
1214

1315
COPY bin/profile-examples.sh /usr/local/bin/profile-examples.sh
1416
COPY bin/profile-example-memory-usage.sh /usr/local/bin/profile-example-memory-usage.sh

0 commit comments

Comments
 (0)