Skip to content

Commit 8954b63

Browse files
author
Yann N.
committed
fix: another docker + conda try
1 parent dc7c77a commit 8954b63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docker_ubuntu20.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: docker build . --file Dockerfile.ubuntu20 --tag mapillary/opensfm.ubuntu20:$GITHUB_SHA
1818

1919
- name: Run C++ tests
20-
run: docker run mapillary/opensfm.ubuntu20:$GITHUB_SHA /bin/bash -c "conda activate opensfm && cd cmake_build && ctest"
20+
run: docker run mapillary/opensfm.ubuntu20:$GITHUB_SHA /bin/bash -c "source ~/.bashrc && conda activate opensfm && cd cmake_build && ctest"
2121

2222
- name: Run Python tests
23-
run: docker run mapillary/opensfm.ubuntu20:$GITHUB_SHA /bin/bash -c "conda activate opensfm && export LD_PRELOAD=$CONDA_PREFIX/lib/libtcmalloc.so && python3 -m pytest"
23+
run: docker run mapillary/opensfm.ubuntu20:$GITHUB_SHA /bin/bash -c "source ~/.bashrc && conda activate opensfm && export LD_PRELOAD=$CONDA_PREFIX/lib/libtcmalloc.so && python3 -m pytest"

.github/workflows/docker_ubuntu24.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: docker build . --file Dockerfile.ubuntu24 --tag mapillary/opensfm.ubuntu24:$GITHUB_SHA
1818

1919
- name: Run C++ tests
20-
run: docker run mapillary/opensfm.ubuntu24:$GITHUB_SHA /bin/bash -c "cd cmake_build && ctest --output-on-failure"
20+
run: docker run mapillary/opensfm.ubuntu24:$GITHUB_SHA /bin/bash -c "source ~/.bashrc && conda activate opensfm && cd cmake_build && ctest --output-on-failure"
2121

2222
- name: Run Python tests
23-
run: docker run mapillary/opensfm.ubuntu24:$GITHUB_SHA /bin/bash -c "export LD_PRELOAD=$CONDA_PREFIX/lib/libtcmalloc.so && python -m pytest -v"
23+
run: docker run mapillary/opensfm.ubuntu24:$GITHUB_SHA /bin/bash -c "source ~/.bashrc && conda activate opensfm && export LD_PRELOAD=$CONDA_PREFIX/lib/libtcmalloc.so && python -m pytest -v"

0 commit comments

Comments
 (0)