Skip to content

adding cpu only test Github job #1

adding cpu only test Github job

adding cpu only test Github job #1

Workflow file for this run

name: Running Tests (cpu)
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests-linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
with:
ref: "main"
fetch-depth: 0
- name: Create conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-name: httomo
create-args: >-
python==3.12
numpy==2.4
h5py=*=*mpi_openmpi*
mpi4py
tomopy==1.15.3
post-cleanup: 'all'
init-shell: bash
- name: Install httomo libraries and httomo
run: |
micromamba activate httomo
python -m pip install --no-deps pytest pytest-cov
python -m pip install --no-deps tomobar
python -m pip install --no-deps httomolibgpu
python -m pip install --no-deps httomolib
python -m pip install --no-deps httomo-backends
pip install . --no-deps
micromamba list
- name: Generate full yaml pipelines using pipeline directives
run: |
python -m pip install pyyaml
python -m pip install "ruamel.yaml>0.18.0"
python ./docs/source/scripts/execute_pipelines_build.py -o ./docs/source/pipelines_full/
- name: Run HTTomo framework tests
run: |
pytest tests/
- name: Run HTTomo pipelines tests (small data)
run: |
pytest tests/test_pipeline_small.py --small_data