File tree Expand file tree Collapse file tree 2 files changed +37
-4
lines changed
Expand file tree Collapse file tree 2 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 3232 steps :
3333 - uses : actions/checkout@v4
3434 with : {fetch-depth: 0, submodules: recursive}
35- - name : Set up CUDA
36- uses : Jimver/cuda-toolkit@master
37- id : cuda-toolkit
35+ - id : reqs
36+ name : set conda
37+ run : |
38+ envname="${GITHUB_REPOSITORY##*/}-${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}"
39+ echo "envname=$envname" >> $GITHUB_OUTPUT
40+ - uses : conda-incubator/setup-miniconda@v3
41+ with :
42+ python-version : ${{ matrix.python-version }}
43+ environment-file : scripts/requirements-cuda.yml
44+ activate-environment : ${{ steps.reqs.outputs.envname }}
45+ run-post : false
3846 - name : Install uv
3947 uses : astral-sh/setup-uv@v5
4048 with :
4452 with :
4553 python-version : ${{ matrix.python-version }}
4654 - name : " Install Project"
47- run : uv sync --dev --all-extras
55+ run : |
56+ conda activate
57+ conda install conda-forge::cudatoolkit-dev=11.7.0
58+ echo $CUDA_HOME
59+ echo $CUDA_PATH
60+ uv sync --dev --all-extras
4861 - name : test
4962 run : CIL_DATA_DIR=./Wrappers/Python/data uv run --dev python -m unittest discover -v -k tigre -k TIGRE -k astra -k ASTRA -k gpu -k GPU ./Wrappers/Python/test
5063 test :
Original file line number Diff line number Diff line change 1+ # Copyright 2023 United Kingdom Research and Innovation
2+ # Copyright 2023 The University of Manchester
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ # http://www.apache.org/licenses/LICENSE-2.0
7+ # Unless required by applicable law or agreed to in writing, software
8+ # distributed under the License is distributed on an "AS IS" BASIS,
9+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+ # See the License for the specific language governing permissions and
11+ # limitations under the License.
12+ # Authors:
13+ # CIL Developers, listed at: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt
14+ name : cuda_dev
15+ channels :
16+ - conda-forge
17+ # - nvidia
18+ dependencies :
19+ # base (vis. recipe/conda_build_config.yaml)
20+ - python >=3.10
You can’t perform that action at this time.
0 commit comments