-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 822 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Python CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: /usr/local/cuda/lib64:$LD_LIBRARY_PATH # Set library path for CUDA
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install CUDA Toolkit
run: sudo apt-get update && sudo apt-get install -y nvidia-cuda-toolkit
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: biodeg
python-version: 3.11
- name: Install Conda dependencies
run: conda install cudatoolkit=10.2
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest