diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..34092fb --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,36 @@ +name: sophiread_ci + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + - qa + - next + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + mamba-version: "*" + environment-file: sophiread/environment_linux.yml + - name: build_sophiread + shell: bash -l {0} + run: | + cd sophiread + mkdir build + cd build + cmake .. + make + - name: test_sophiread + shell: bash -l {0} + run: | + cd sophiread/build + ctest -V