Skip to content

fbcode/mapillary/opensfm/opensfm/src #939

fbcode/mapillary/opensfm/opensfm/src

fbcode/mapillary/opensfm/opensfm/src #939

Workflow file for this run

name: Docker CI
on: [push, pull_request]
jobs:
build-test:
name: Build docker and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build the Docker image
run: docker build . --file Dockerfile --tag mapillary/opensfm:$GITHUB_SHA
- name: Run C++ tests
run: docker run mapillary/opensfm:$GITHUB_SHA /bin/sh -c "cd cmake_build && ctest"
- name: Run Python tests
run: docker run mapillary/opensfm:$GITHUB_SHA python3 -m pytest