Merge pull request #238 from DiamondLightSource/paganin_changes #49
This file contains hidden or 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: Main Branch Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| iris-gpu: | |
| runs-on: iris-gpu | |
| container: | |
| image: nvidia/cuda:12.6.3-devel-ubi8 | |
| env: | |
| NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | |
| options: --gpus all --runtime=nvidia | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create conda environment | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-name: httomo | |
| create-args: >- | |
| cupy==12.3.0 | |
| ccpi::ccpi-regulariser | |
| post-cleanup: 'all' | |
| init-shell: bash | |
| - name: Install httomolibgpu | |
| run: | | |
| pip install .[dev] | |
| micromamba list | |
| - name: Run small data tests | |
| run: | | |
| pytest tests/ | |
| - name: Download Zenodo data and run large data tests | |
| run: | | |
| chmod +x ./.scripts/download_zenodo.py | |
| ./.scripts/download_zenodo.py zenodo-tests/large_data_archive | |
| pytest zenodo-tests/ |