Trigger IRIS CI workflow once for PR branch push #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: httomolibgpu tests on Iris | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
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@v3 | |
with: | |
ref: "main" | |
fetch-depth: 0 | |
- 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 | |
- name: Install httomolibgpu | |
run: | | |
$CONDA/bin/conda run -n httomolibgpu pip install .[dev] | |
$CONDA/bin/conda list | |
- name: Run tests | |
run: | | |
$CONDA/bin/conda run -n httomolibgpu pytest tests/ |