Skip to content

Debugging extbuild

Debugging extbuild #98

name: OEQ CUDA C++ Extension Build Verification
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ labeled ]
workflow_dispatch:
permissions:
contents: read
jobs:
verify_cuda_extension:
if: ${{ github.event.label.name == 'ci-ready' || github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: '**/requirements_cuda_ci.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt install nvidia-cuda-toolkit
pip install -r .github/workflows/requirements_cuda_ci.txt
pip install -e .
- name: Test extension build via import
run: |
pytest tests/import_test.py -k test_extension_built