Skip to content

Use conda to setup python env #144

Use conda to setup python env

Use conda to setup python env #144

Workflow file for this run

name: ASV
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
pull_request:
jobs:
build:
name: Build and run benchmarks
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0} # required for conda env
steps:
- uses: actions/checkout@v3
with:
repository: 'scipp/scipp'
submodules: true
fetch-depth: 0 # history required so cmake can determine version
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: 1.5.6-0
environment-file: .buildconfig/ci-linux.yml
cache-environment: true
create-args: python=3.10
- uses: actions/checkout@v3
with:
path: 'scipp-benchmarks'
- uses: hendrikmuhs/[email protected]
- run: cmake --preset base
- run: cmake --build --preset build
- run: ctest --preset test
- run: tox -e asv
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: scipp-benchmarks
file_pattern: results/*
- name: Deploy benchmark results
uses: JamesIves/[email protected]
with:
branch: gh_pages
folder: scipp-benchmarks/docs
single-commit: true