Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use conda to setup python env #7

Merged
merged 6 commits into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/asv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,33 @@ 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
- uses: actions/checkout@v3

- name: Setup conda environment
uses: mamba-org/setup-micromamba@v2
with:
path: 'scipp-benchmarks'
micromamba-version: 1.5.6-0
environment-file: .buildconfig/ci-linux.yml
cache-environment: true
create-args: python=3.10

- uses: actions/setup-python@v5
- uses: actions/checkout@v3
with:
python-version: '3.10'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
path: 'scipp-benchmarks'

- uses: hendrikmuhs/[email protected]

- run: tox -e lib
- run: cmake --preset base
- run: cmake --build --preset build
- run: ctest --preset test
- run: tox -e asv

- uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
Loading