Skip to content

removes cupy regularisers from pyproject #119

removes cupy regularisers from pyproject

removes cupy regularisers from pyproject #119

name: httomolibgpu quick tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
iris-gpu:
runs-on: iris-gpu
container:
image: ghcr.io/diamondlightsource/httomolibgpu:dockerfile
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
options: --gpus all --runtime=nvidia
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- name: Create conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: conda/environment.yml
environment-name: httomo
post-cleanup: 'all'
init-shell: bash
- name: Install httomolibgpu & coverage tools
run: |
pip install .[dev]
pip install coverage
micromamba list
- name: Run tests with coverage
run: |
pytest --cov=./ tests/ --cov-report=xml:/home/runner/coverage.xml
- name: Upload coverage to Codecov
run: |
pip install codecov-cli
codecovcli -v upload-coverage --fail-on-error --file /home/runner/coverage.xml --name httomolibgpu-codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}