Skip to content

Use conda to setup python env #141

Use conda to setup python env

Use conda to setup python env #141

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
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: actions/setup-python@v5
# with:
# python-version: '3.10'
# - run: python -m pip install --upgrade pip
# - run: python -m pip install -r requirements/ci.txt
- uses: hendrikmuhs/[email protected]
- run: tox -e lib
- 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