Skip to content

Commit 6497929

Browse files
Pau Gargallopaulinus
authored andcommitted
Add github action for building and testing the Conda build
1 parent 90bac2a commit 6497929

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/conda.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Ubuntu Conda CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
build-test:
8+
name: Build conda environment and run tests
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
16+
- name: Setup Miniconda
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
environment-file: conda.yml
20+
activate-environment: opensfm
21+
22+
- name: Build OpenSfM
23+
shell: bash -l {0}
24+
run: python setup.py build
25+
26+
- name: Run C++ tests
27+
shell: bash -l {0}
28+
run: cd cmake_build && ctest
29+
30+
- name: Run Python tests
31+
shell: bash -l {0}
32+
run: python -m pytest

0 commit comments

Comments
 (0)