Skip to content

build

build #71

Workflow file for this run

name: build
on:
push:
branches:
- "master"
pull_request:
schedule:
- cron: "0 2 * * 1" # 1=monday
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: "ubuntu-latest"
shell_exec: "bash -c"
activate_cmd: "source activate"
- os: "windows-latest"
shell_exec: "cmd.exe /c"
activate_cmd: "activate"
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: "3.10"
conda-channels: anaconda, conda-forge
- name: conda-devenv
run: |
conda install conda-devenv
conda-devenv
- name: Test
run: |
${{ matrix.shell_exec }} "${{ matrix.activate_cmd }} deps && python -m pytest source/python"