Skip to content

Use micromamba github action in IRIS CI workflow #44

Use micromamba github action in IRIS CI workflow

Use micromamba github action in IRIS CI workflow #44

Workflow file for this run

name: httomolibgpu tests on Iris
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-linux:
runs-on: iris-gpu
container:
image: nvidia/11.6.2-runtime-ubi8
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v3
with:
ref: "main"
fetch-depth: 0
- name: Create conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: conda/environment.yml
environment-name: httomo
post-cleanup: 'all'
init-shell: bash
- name: Install httomolibgpu
run: |
pip install .[dev]
micromamba list
- name: Run tests
run: |
pytest tests/