Skip to content

Commit

Permalink
build profiling image in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 31, 2024
1 parent ad1f068 commit 1fe2d4b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
!LightGBM/python-package
!LightGBM/src
!LightGBM/swig
!LightGBM/windows
!LightGBM/VERSION.txt
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Build cluster image
run: |
make cluster-image
- name: Build profiling image
run: |
make profiling-image
all-tests-successful:
if: always()
runs-on: ubuntu-latest
Expand Down
14 changes: 8 additions & 6 deletions Dockerfile-profiling
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ ARG BASE_IMAGE=unset
# hadolint ignore=DL3006
FROM ${BASE_IMAGE}

RUN pip install --no-cache-dir --prefer-binary \
memray \
pytest \
pytest-memray \
pytest-profiling \
snakeviz
RUN <<<EOF
pip install --no-cache-dir --prefer-binary \
memray \
pytest \
pytest-memray \
pytest-profiling \
snakeviz
EOF

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

0 comments on commit 1fe2d4b

Please sign in to comment.