Skip to content

Commit f8a0992

Browse files
author
Pau Gargallo
committed
Add github action for building and testing the Conda build
1 parent 90bac2a commit f8a0992

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/conda.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: Create conda environment
17+
run: conda env create --file conda.yml --yes
18+
19+
- name: Activate conda environment
20+
run: conda activate opensfm
21+
22+
- name: Run C++ tests
23+
run: cd cmake_build && ctest
24+
25+
- name: Run Python tests
26+
run: python3 -m pytest

0 commit comments

Comments
 (0)