Install editable hloc to deps rather than src. #253
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: limap | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| types: [ assigned, opened, synchronize, reopened ] | |
| release: | |
| types: [ published, edited ] | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.os }} ${{ matrix.config.arch }} with Python ${{ matrix.config.python-version }} | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [ | |
| {os: ubuntu-latest, python-version: "3.9"}, | |
| {os: ubuntu-latest, python-version: "3.10"}, | |
| {os: ubuntu-latest, python-version: "3.11"}, | |
| ] | |
| env: | |
| COMPILER_CACHE_VERSION: 1 | |
| COMPILER_CACHE_DIR: ${{ github.workspace }}/compiler-cache | |
| CCACHE_DIR: ${{ github.workspace }}/compiler-cache/ccache | |
| CCACHE_BASEDIR: ${{ github.workspace }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| id: cache-builds | |
| with: | |
| key: limap-v${{ env.COMPILER_CACHE_VERSION }}-${{ matrix.config.os }}-${{ matrix.config.arch }}-${{ github.run_id }}-${{ github.run_number }} | |
| restore-keys: limap-v${{ env.COMPILER_CACHE_VERSION }}-${{ matrix.config.os }}-${{ matrix.config.arch }} | |
| path: ${{ env.COMPILER_CACHE_DIR }} | |
| - name: Set env (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| libboost-program-options-dev \ | |
| libboost-graph-dev \ | |
| libboost-system-dev \ | |
| libeigen3-dev \ | |
| libceres-dev \ | |
| libflann-dev \ | |
| libfreeimage-dev \ | |
| libmetis-dev \ | |
| libgoogle-glog-dev \ | |
| libgtest-dev \ | |
| libgmock-dev \ | |
| libsqlite3-dev \ | |
| libglew-dev \ | |
| qtbase5-dev \ | |
| libqt5opengl5-dev \ | |
| libcgal-dev \ | |
| libcgal-qt5-dev \ | |
| libgl1-mesa-dri \ | |
| libunwind-dev \ | |
| xvfb | |
| - name: Set up Python ${{ matrix.config.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.config.python-version }} | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| docker system prune -af || true | |
| - name: Clean workspace artifacts | |
| run: rm -rf build/ dist/ *.egg-info/ .eggs/ | |
| - name: Install Python dependencies | |
| run: | | |
| git submodule update --init --recursive | |
| python -m pip install --upgrade pip | |
| python -m pip install --src deps -r requirements.txt | |
| - name: Build | |
| run: python -m pip install -v . | |
| - name: Run Python tests | |
| run: python -c "import limap; print(limap.__version__)" | |
| - name: Run tests | |
| run: | | |
| pytest -m ci_workflow tests | |
| - name: Run localization test | |
| run: | | |
| python runners/tests/localization.py | |
| - name: Run E2E tests | |
| run: | | |
| bash scripts/quickstart.sh | |
| python runners/hypersim/fitnmerge.py --default_config_file cfgs/fitnmerge/default_cpu.yaml \ | |
| --output_dir outputs/quickstart_test --visualize 0 | |
| python runners/hypersim/triangulation.py --default_config_file cfgs/triangulation/default_cpu.yaml \ | |
| --output_dir outputs/quickstart_test --triangulation.use_exhaustive_matcher --skip_exists --visualize 0 | |
| python runners/colmap_triangulation.py -a outputs/quickstart_test/colmap_outputs \ | |
| --config_file cfgs/triangulation/default_cpu.yaml \ | |
| --output_dir outputs/quickstart_test_colmap --triangulation.use_exhaustive_matcher --visualize 0 \ | |
| --triangulation.use_pointsfm.enable --triangulation.use_pointsfm.colmap_folder outputs/quickstart_test/colmap_outputs/sparse | |