diff --git a/.github/workflows/ci_testing.yml b/.github/workflows/ci_testing.yml new file mode 100644 index 0000000000000000000000000000000000000000..fee3c9bff76bef7f10e4d932b4a7b9382f1cf909 --- /dev/null +++ b/.github/workflows/ci_testing.yml @@ -0,0 +1,33 @@ +name: Pull-Request-CI + +on: + pull_request: + branches: + - master + +jobs: + Continuous-Integration: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: conda-incubator/setup-miniconda@v2 + with: + miniconda-version: "latest" + activate-environment: ale + environment-file: environment.yml + - name: Install Python Package + run: | + python setup.py install + - name: Test Python Package + run: | + pytest tests/pytests -vv + - name: Build C++ Package + run: | + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=RELEASE .. + cmake --build . + - name: Test C++ Package + run: | + ctest -VV + diff --git a/environment.yml b/environment.yml index b0d9bf4028475c00e8393fc65822999c7a72596f..c859b97835d6e04755fac098f6b251f551007d1e 100644 --- a/environment.yml +++ b/environment.yml @@ -17,4 +17,5 @@ dependencies: - scipy>=1.4.0 - spiceypy>=2.3.0 - pyyaml + - pytest - networkx