Skip to content

Chopper toolkit

Chopper toolkit #826

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true # cancel jobs from previous push
jobs:
tests:
name: tests ${{ matrix.variant.os }}, py${{ matrix.variant.python-version }}
runs-on: ${{ matrix.variant.os }}
defaults:
run:
shell: bash -l {0} # required for conda env
strategy:
fail-fast: false
matrix:
variant:
- {os: ubuntu-20.04, python-version: "3.10", build-config: ci-linux}
- {os: macos-11, python-version: "3.10", build-config: ci-macos}
- {os: windows-2019, python-version: "3.10", build-config: ci-windows}
- {os: ubuntu-20.04, python-version: "3.9", build-config: ci-linux-39}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup conda environment
uses: mamba-org/provision-with-micromamba@main
with:
micromamba-version: 1.0.0
environment-file: .buildconfig/${{ matrix.variant.build-config }}.yml
cache-env: true
extra-specs: |
python=${{ matrix.variant.python-version }}
conda-build
- run: conda develop src
- run: python -m pytest