diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..0be26f9 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,39 @@ +name: Basic consistency tests +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + buildmamba: + runs-on: ${{ matrix.config.os }} + name: ${{ matrix.config.os }} + strategy: + fail-fast: false + matrix: + config: + - {os: windows-latest} + - {os: macOS-latest} + - {os: ubuntu-latest} + steps: + - uses: actions/checkout@v3 + with: + submodules: "recursive" + fetch-depth: 0 + - name: Install Conda environment + uses: mamba-org/setup-micromamba@v1 + with: + environment-file: environment.yml + cache-environment: true + - name: Build and Test + shell: bash -l {0} + run: | + fpm build + pytest -vvv