Skip to content

Rename build.yml to ci.yml #1

Rename build.yml to ci.yml

Rename build.yml to ci.yml #1

Workflow file for this run

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