Skip to content

ci changes5

ci changes5 #9

Workflow file for this run

name: httomolibgpu tests on Iris
on:
- pull_request
- push
jobs:
build-linux:
runs-on: iris-gpu
container:
image: nvidia/cuda:11.6.2-devel-ubi8
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
with:
ref: "main"
fetch-depth: 0
# setup Python 3.9
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
# - name: Create conda environment
# uses: conda-incubator/setup-miniconda@v2
# with:
# miniconda-version: latest
# channels: conda-forge,httomo,defaults,astra-toolbox,anaconda,rapidsai
# auto-activate-base: false
# activate-environment: httomolibgpu
# environment-file: conda/environment.yml
# install dependencies with conda
- name: Install dependencies with Conda
run: |
conda env create httomolibgpu --file conda/environment.yml
- name: Install httomolibgpu
run: |
$CONDA/bin/conda run -n httomolibgpu pip install -e .
$CONDA/bin/conda list
- name: Run tests
run: |
$CONDA/bin/conda run -n httomolibgpu pytest